github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/redis/templates/redis-master-svc.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: {{ template "redis.fullname" . }}-master 5 labels: 6 app: {{ template "redis.name" . }} 7 chart: {{ template "redis.chart" . }} 8 release: "{{ .Release.Name }}" 9 heritage: "{{ .Release.Service }}" 10 annotations: 11 {{- if .Values.master.service.annotations }} 12 {{ toYaml .Values.master.service.annotations | indent 4 }} 13 {{- end }} 14 spec: 15 type: {{ .Values.master.service.type }} 16 {{ if eq .Values.master.service.type "LoadBalancer" -}} {{ if .Values.master.service.loadBalancerIP -}} 17 loadBalancerIP: {{ .Values.master.service.loadBalancerIP }} 18 {{ end -}} 19 {{- end -}} 20 ports: 21 - name: redis 22 port: 6379 23 targetPort: redis 24 selector: 25 app: {{ template "redis.name" . }} 26 release: "{{ .Release.Name }}" 27 {{- if .Values.cluster.enabled }} 28 role: master 29 {{- end }}