argocd-helm/charts/argo-rollouts/templates/argo-rollouts-metrics-service.yaml

22 lines
522 B
YAML
Raw Normal View History

{{- 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 }}