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

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