* feat(argo-cd): Make metrics and serviceMonitors usable on an istio service mesh Signed-off-by: Christian Brauchli <chb@open.ch> * change back default values Signed-off-by: Christian Brauchli <chb@open.ch> * update README Signed-off-by: Christian Brauchli <chb@open.ch> * change values to the values they where before Signed-off-by: Christian Brauchli <chb@open.ch> * fix lint Signed-off-by: Christian Brauchli <chb@open.ch> * adjust default portName to be istio compatible Signed-off-by: Christian Brauchli <chb@open.ch> * update docs Signed-off-by: Christian Brauchli <chb@open.ch> * Resolve copy-paste errors Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Restore dex/deployment.yaml and adapt dex/service.yaml Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Bump minor chart version and add port renaming to changelog Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Christian Brauchli <chb@open.ch> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
{{- if .Values.dex.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "argo-cd.dex.fullname" . }}
|
|
{{- if .Values.dex.metrics.service.annotations }}
|
|
annotations:
|
|
{{- range $key, $value := .Values.dex.metrics.service.annotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.dex.name "name" .Values.dex.name) | nindent 4 }}
|
|
{{- if .Values.dex.metrics.service.labels }}
|
|
{{- toYaml .Values.dex.metrics.service.labels | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
ports:
|
|
- name: {{ .Values.dex.servicePortHttpName }}
|
|
protocol: TCP
|
|
port: {{ .Values.dex.servicePortHttp }}
|
|
targetPort: http
|
|
- name: {{ .Values.dex.servicePortGrpcName }}
|
|
protocol: TCP
|
|
port: {{ .Values.dex.servicePortGrpc }}
|
|
targetPort: grpc
|
|
{{- if .Values.dex.metrics.enabled }}
|
|
- name: {{ .Values.dex.metrics.service.portName }}
|
|
protocol: TCP
|
|
port: {{ .Values.dex.servicePortMetrics }}
|
|
targetPort: metrics
|
|
{{- end }}
|
|
selector:
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.dex.name) | nindent 4 }}
|
|
{{- end }}
|