Files
charts/bitnami/redis-cluster/templates/redis-svc.yaml
fifa451 94323c3465 [bitnam/redis-cluster]Fixed the extraVolume wrong value key and service lable indent error (#2980)
* Fixed the extraVolume wrong value key and service lable indent error

* fix the statefulset customized initcontainer indent
2020-07-01 13:12:15 +02:00

29 lines
1.1 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ template "common.names.fullname" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.service.labels -}}
{{ include "common.tplvalues.render" ( dict "value" .Values.service.labels "context" $ ) | nindent 4 }}
{{- end -}}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.service.annotations }}
{{ include "common.tplvalues.render" ( dict "value" .Values.service.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and (eq "LoadBalancer" .Values.service.type) .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end}}
ports:
- name: tcp-redis
port: {{ .Values.service.port }}
targetPort: tcp-redis
selector: {{- include "common.labels.matchLabels" $ | nindent 4 }}