22 lines
609 B
YAML
22 lines
609 B
YAML
{{- if .Values.diagnostics.isDiagnosticsPrimary.enabled }}
|
|
{{- if .Values.diagnostics.enabled }}
|
|
{{- if (not (empty .Values.kubecostModel.federatedStorageConfigSecret )) -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "diagnostics.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "diagnostics.selectorLabels" . | nindent 4 }}
|
|
spec:
|
|
ports:
|
|
- name: diagnostics-api
|
|
protocol: TCP
|
|
port: 9007
|
|
targetPort: diagnostics-api
|
|
selector:
|
|
{{- include "diagnostics.selectorLabels" . | nindent 4 }}
|
|
type: ClusterIP
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }} |