mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 14:57:08 +08:00
* Fixed the extraVolume wrong value key and service lable indent error * fix the statefulset customized initcontainer indent
29 lines
1.1 KiB
YAML
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 }}
|