github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/redis/templates/metrics-svc.yaml (about)

     1  {{- if .Values.metrics.enabled }}
     2  apiVersion: v1
     3  kind: Service
     4  metadata:
     5    name: {{ template "redis.fullname" . }}-metrics
     6    labels:
     7      app: {{ template "redis.name" . }}
     8      chart: {{ template "redis.chart" . }}
     9      release: "{{ .Release.Name }}"
    10      heritage: "{{ .Release.Service }}"
    11    annotations:
    12  {{ toYaml .Values.metrics.service.annotations | indent 4 }}
    13  spec:
    14    type: {{ .Values.metrics.service.type }}
    15    {{ if eq .Values.metrics.service.type "LoadBalancer" -}} {{ if .Values.metrics.service.loadBalancerIP -}}
    16    loadBalancerIP: {{ .Values.metrics.service.loadBalancerIP }}
    17    {{ end -}}
    18    {{- end -}}
    19    ports:
    20    - name: metrics
    21      port: 9121
    22      targetPort: metrics
    23    selector:
    24      app: {{ template "redis.name" . }}
    25      release: {{ .Release.Name }}
    26      role: metrics
    27  {{- end }}