mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
* Fixed race condition for sentinel synchronization and missing nil check * Added check for sentinel to add publishNotReadyAddresses * Added missing nil check for non-sentinel deployment * [bitnami/redis] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
29 lines
743 B
YAML
29 lines
743 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "redis.fullname" . }}-headless
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels:
|
|
app: {{ template "redis.name" . }}
|
|
chart: {{ template "redis.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
type: ClusterIP
|
|
clusterIP: None
|
|
{{- if .Values.sentinel.enabled }}
|
|
publishNotReadyAddresses: true
|
|
{{- end }}
|
|
ports:
|
|
- name: redis
|
|
port: {{ .Values.redisPort }}
|
|
targetPort: redis
|
|
{{- if .Values.sentinel.enabled }}
|
|
- name: redis-sentinel
|
|
port: {{ .Values.sentinel.port }}
|
|
targetPort: redis-sentinel
|
|
{{- end }}
|
|
selector:
|
|
app: {{ template "redis.name" . }}
|
|
release: {{ .Release.Name }}
|