Files
opendesk/helmfile/apps/services-external/values-redis.yaml.gotmpl
2025-07-08 13:02:56 +02:00

86 lines
3.0 KiB
Go Template

{{/*
SPDX-FileCopyrightText: 2024-2025 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH
SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
SPDX-License-Identifier: Apache-2.0
*/}}
---
architecture: "standalone"
auth:
password: {{ .Values.secrets.redis.password | quote }}
existingSecret: {{ .Values.externalSecrets.redis.existingSecret | quote }}
existingSecretPasswordKey: {{ .Values.externalSecrets.redis.existingSecretPasswordKey | quote }}
commonAnnotations:
{{ .Values.annotations.servicesExternalRedis.common | toYaml | nindent 2 }}
global:
imagePullSecrets:
{{ .Values.global.imagePullSecrets | toYaml | nindent 4 }}
storageClass: {{ coalesce .Values.persistence.storages.redis.storageClassName .Values.persistence.storageClassNames.RWO | quote }}
image:
registry: {{ coalesce .Values.repositories.image.dockerHub .Values.global.imageRegistry .Values.images.redis.registry | quote }}
repository: {{ .Values.images.redis.repository | quote }}
tag: {{ .Values.images.redis.tag | quote }}
pullPolicy: {{ .Values.global.imagePullPolicy | quote }}
master:
annotations:
{{ .Values.annotations.servicesExternalRedis.masterMaster | toYaml | nindent 4 }}
containerSecurityContext:
privileged: false
readOnlyRootFilesystem: true
runAsUser: 1001
runAsGroup: 1001
runAsNonRoot: true
allowPrivilegeEscalation: false
seccompProfile:
type: "RuntimeDefault"
capabilities:
drop:
- "ALL"
seLinuxOptions:
{{ .Values.seLinuxOptions.redis | toYaml | nindent 6 }}
count: {{ .Values.replicas.redis }}
persistence:
size: {{ .Values.persistence.storages.redis.size | quote }}
annotations:
{{ .Values.annotations.servicesExternalRedis.masterPersistence | toYaml | nindent 6 }}
podAnnotations:
{{ .Values.annotations.servicesExternalRedis.masterPod | toYaml | nindent 4 }}
resources:
{{ .Values.resources.redis | toYaml | nindent 4 }}
service:
annotations:
{{ .Values.annotations.servicesExternalRedis.masterService | toYaml | nindent 6 }}
serviceAccount:
annotations:
{{ .Values.annotations.servicesExternalRedis.masterServiceAccount | toYaml | nindent 6 }}
metrics:
enabled: false
replica:
annotations:
{{ .Values.annotations.servicesExternalRedis.replicaReplica | toYaml | nindent 4 }}
persistence:
annotations:
{{ .Values.annotations.servicesExternalRedis.replicaPersistence | toYaml | nindent 6 }}
podAnnotations:
{{ .Values.annotations.servicesExternalRedis.replicaPod | toYaml | nindent 4 }}
service:
annotations:
{{ .Values.annotations.servicesExternalRedis.replicaService | toYaml | nindent 6 }}
serviceAccount:
annotations:
{{ .Values.annotations.servicesExternalRedis.replicaServiceAccount | toYaml | nindent 6 }}
secretAnnotations:
{{ .Values.annotations.servicesExternalRedis.secret | toYaml | nindent 2 }}
sentinel:
enabled: false
...