argocd-helm/charts/argo-rollouts/templates/argo-rollouts-metrics-service.yaml
Pedro Arvela b582098455
fix: Allow metrics service without CoreOS Service Monitor (#775)
Signed-off-by: Pedro Arvela <pedro.arvela@onfido.com>
2021-05-31 23:23:05 +02:00

21 lines
522 B
YAML

{{- if .Values.controller.metrics.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "argo-rollouts.fullname" . }}-metrics
labels:
app.kubernetes.io/component: server
{{- include "argo-rollouts.labels" . | nindent 4 }}
{{- with .Values.serviceAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- name: metrics
protocol: TCP
port: 8090
targetPort: 8090
selector:
{{- include "argo-rollouts.selectorLabels" . | nindent 6 }}
{{- end }}