* [argocd-applicationset]: Add metrics-service and servicemonitor to applicationset. Signed-off-by: fuyuan.chu <fuyuan.chu@airwallex.com> * [argocd-applicationset]: Add ci values for servicemonitor. Signed-off-by: fuyuan.chu <fuyuan.chu@airwallex.com> * format indent Signed-off-by: fuyuan.chu <fuyuan.chu@airwallex.com> * update helm docs Signed-off-by: fuyuan.chu <fuyuan.chu@airwallex.com> * update ci values Signed-off-by: fuyuan.chu <fuyuan.chu@airwallex.com> * update ci values Signed-off-by: fuyuan.chu <fuyuan.chu@airwallex.com> * chore: Use consistent indents and file ending Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Also disable mounts of ArgoCD during metrics test Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
25 lines
722 B
YAML
25 lines
722 B
YAML
{{- if .Values.metrics.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
{{- if .Values.metrics.service.annotations }}
|
|
annotations:
|
|
{{- range $key, $value := .Values.metrics.service.annotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "argo-applicationset.labels" . | nindent 4 }}
|
|
{{- with .Values.metrics.service.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ template "argo-applicationset.fullname" . }}-metrics
|
|
spec:
|
|
ports:
|
|
- name: metrics
|
|
protocol: TCP
|
|
port: {{ .Values.metrics.service.servicePort }}
|
|
targetPort: metrics
|
|
selector:
|
|
{{- include "argo-applicationset.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|