mirror of
https://github.com/bitnami/charts.git
synced 2026-03-15 14:57:16 +08:00
* [bitnami/valkey] Update all the references from to Signed-off-by: David Gomez <dgomezleon@vmware.com> * [bitnami/valkey] Adapt tests and README Signed-off-by: David Gomez <dgomezleon@vmware.com> * [bitnami/valkey] Update get-master-addr-by-name to get-primary-addr-by-name Signed-off-by: David Gomez <dgomezleon@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * [bitnami/valkey] Apply feedback Signed-off-by: David Gomez <dgomezleon@vmware.com> * [bitnami/valkey] Keep previous output for GOSS test Signed-off-by: David Gomez <dgomezleon@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * [bitnami/valkey-cluster] Fix linter warnings Signed-off-by: David Gomez <dgomezleon@vmware.com> * [bitnami/valkey] Apply new feedback Signed-off-by: David Gomez <dgomezleon@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> --------- Signed-off-by: David Gomez <dgomezleon@vmware.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
37 lines
1.6 KiB
YAML
37 lines
1.6 KiB
YAML
{{- /*
|
|
Copyright Broadcom, Inc. All Rights Reserved.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ printf "%s-headless" (include "common.names.fullname" .) }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
app.kubernetes.io/part-of: valkey
|
|
{{- if or .Values.sentinel.service.headless.annotations .Values.commonAnnotations (include "valkey.externalDNS.annotations" .) }}
|
|
annotations:
|
|
{{- if or .Values.sentinel.service.headless.annotations .Values.commonAnnotations }}
|
|
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.sentinel.service.headless.annotations .Values.commonAnnotations ) "context" . ) }}
|
|
{{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- include "valkey.externalDNS.annotations" . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: ClusterIP
|
|
clusterIP: None
|
|
{{- if .Values.sentinel.enabled }}
|
|
publishNotReadyAddresses: true
|
|
{{- end }}
|
|
ports:
|
|
- name: tcp-redis
|
|
port: {{ if .Values.sentinel.enabled }}{{ .Values.replica.containerPorts.valkey }}{{ else }} {{ .Values.primary.containerPorts.valkey }}{{ end }}
|
|
targetPort: redis
|
|
{{- if .Values.sentinel.enabled }}
|
|
- name: tcp-sentinel
|
|
port: {{ .Values.sentinel.containerPorts.sentinel }}
|
|
targetPort: valkey-sentinel
|
|
{{- end }}
|
|
selector: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|