diff --git a/charts/redis-cluster/README.md b/charts/redis-cluster/README.md index b65f46230c..b5ff938fa4 100644 --- a/charts/redis-cluster/README.md +++ b/charts/redis-cluster/README.md @@ -65,6 +65,7 @@ helm delete --namespace | initContainer.imagePullPolicy | string | `"IfNotPresent"` | | | initContainer.resources | object | `{}` | | | labels | object | `{}` | | +| podAnnotations | object | `{}` | Pod annotations to be applied to all Redis pods | | podSecurityContext.fsGroup | int | `1000` | | | podSecurityContext.runAsUser | int | `1000` | | | priorityClassName | string | `""` | | diff --git a/charts/redis-cluster/templates/redis-cluster.yaml b/charts/redis-cluster/templates/redis-cluster.yaml index 5e9f0bb30c..9476ab1f4c 100644 --- a/charts/redis-cluster/templates/redis-cluster.yaml +++ b/charts/redis-cluster/templates/redis-cluster.yaml @@ -5,6 +5,9 @@ metadata: name: {{ .Values.redisCluster.name | default .Release.Name }} labels: {{- include "common.labels" . | nindent 4 }} annotations: + {{- if .Values.podAnnotations }} + {{ toYaml .Values.podAnnotations | nindent 4 }} + {{- end }} {{ if .Values.redisCluster.recreateStatefulSetOnUpdateInvalid }} redis.opstreelabs.in/recreate-statefulset: "true" {{ end }} diff --git a/charts/redis-cluster/values.yaml b/charts/redis-cluster/values.yaml index 507b9007be..ef4a2f45a8 100644 --- a/charts/redis-cluster/values.yaml +++ b/charts/redis-cluster/values.yaml @@ -209,6 +209,11 @@ podSecurityContext: runAsUser: 1000 fsGroup: 1000 +# -- Pod annotations to be applied to all Redis pods +podAnnotations: {} + # annotation-key: "annotation-value" + # prometheus.io/scrape: "true" + # prometheus.io/port: "6379" # serviceAccountName: redis-sa diff --git a/charts/redis-replication/README.md b/charts/redis-replication/README.md index 824707c04e..529113a48d 100644 --- a/charts/redis-replication/README.md +++ b/charts/redis-replication/README.md @@ -64,6 +64,7 @@ helm delete --namespace | initContainer.imagePullPolicy | string | `"IfNotPresent"` | | | initContainer.resources | object | `{}` | | | labels | object | `{}` | | +| podAnnotations | object | `{}` | Pod annotations to be applied to all Redis pods | | nodeSelector | object | `{}` | | | pdb.enabled | bool | `false` | | | pdb.maxUnavailable | string | `nil` | | diff --git a/charts/redis-replication/templates/redis-replication.yaml b/charts/redis-replication/templates/redis-replication.yaml index 0b98521729..9eb5789cef 100644 --- a/charts/redis-replication/templates/redis-replication.yaml +++ b/charts/redis-replication/templates/redis-replication.yaml @@ -5,6 +5,9 @@ metadata: name: {{ .Values.redisReplication.name | default .Release.Name }} labels: {{- include "common.labels" . | nindent 4 }} annotations: + {{- if .Values.podAnnotations }} + {{ toYaml .Values.podAnnotations | nindent 4 }} + {{- end }} {{ if .Values.redisReplication.recreateStatefulSetOnUpdateInvalid }} redis.opstreelabs.in/recreate-statefulset: "true" {{ end }} diff --git a/charts/redis-replication/values.yaml b/charts/redis-replication/values.yaml index 5cdff54349..e362442c87 100644 --- a/charts/redis-replication/values.yaml +++ b/charts/redis-replication/values.yaml @@ -147,6 +147,12 @@ tolerations: [] serviceAccountName: "" +# -- Pod annotations to be applied to all Redis pods +podAnnotations: {} + # annotation-key: "annotation-value" + # prometheus.io/scrape: "true" + # prometheus.io/port: "6379" + TLS: ca: ca.key cert: tls.crt diff --git a/charts/redis-sentinel/README.md b/charts/redis-sentinel/README.md index 4a02809b84..9ff51080d9 100644 --- a/charts/redis-sentinel/README.md +++ b/charts/redis-sentinel/README.md @@ -63,6 +63,7 @@ helm delete --namespace | initContainer.imagePullPolicy | string | `"IfNotPresent"` | | | initContainer.resources | object | `{}` | | | labels | object | `{}` | | +| podAnnotations | object | `{}` | Pod annotations to be applied to all sentinel pods | | livenessProbe.failureThreshold | int | `3` | | | livenessProbe.initialDelaySeconds | int | `1` | | | livenessProbe.periodSeconds | int | `10` | | diff --git a/charts/redis-sentinel/templates/redis-sentinel.yaml b/charts/redis-sentinel/templates/redis-sentinel.yaml index 65a2d5244c..52d414718c 100644 --- a/charts/redis-sentinel/templates/redis-sentinel.yaml +++ b/charts/redis-sentinel/templates/redis-sentinel.yaml @@ -5,6 +5,9 @@ metadata: name: {{ .Values.redisSentinel.name | default .Release.Name }} labels: {{- include "common.labels" . | nindent 4 }} annotations: + {{- if .Values.podAnnotations }} + {{ toYaml .Values.podAnnotations | nindent 4 }} + {{- end }} {{ if .Values.redisSentinel.recreateStatefulSetOnUpdateInvalid }} redis.opstreelabs.in/recreate-statefulset: "true" {{ end }} diff --git a/charts/redis-sentinel/values.yaml b/charts/redis-sentinel/values.yaml index 2273451d0f..cbfa1eeb00 100644 --- a/charts/redis-sentinel/values.yaml +++ b/charts/redis-sentinel/values.yaml @@ -148,6 +148,12 @@ tolerations: [] serviceAccountName: "" +# -- Pod annotations to be applied to all sentinel pods +podAnnotations: {} + # annotation-key: "annotation-value" + # prometheus.io/scrape: "true" + # prometheus.io/port: "6379" + TLS: ca: ca.key cert: tls.crt diff --git a/charts/redis/README.md b/charts/redis/README.md index 53b9309f52..40fe4f47b6 100644 --- a/charts/redis/README.md +++ b/charts/redis/README.md @@ -63,6 +63,7 @@ helm delete --namespace | initContainer.imagePullPolicy | string | `"IfNotPresent"` | | | initContainer.resources | object | `{}` | | | labels | object | `{}` | | +| podAnnotations | object | `{}` | Pod annotations to be applied to all Redis pods | | nodeSelector | object | `{}` | | | podSecurityContext.fsGroup | int | `1000` | | | podSecurityContext.runAsUser | int | `1000` | | diff --git a/charts/redis/templates/redis-standalone.yaml b/charts/redis/templates/redis-standalone.yaml index 8302943f5e..bb8dc76ee0 100644 --- a/charts/redis/templates/redis-standalone.yaml +++ b/charts/redis/templates/redis-standalone.yaml @@ -5,6 +5,9 @@ metadata: name: {{ .Values.redisStandalone.name | default .Release.Name }} labels: {{- include "common.labels" . | nindent 4 }} annotations: + {{- if .Values.podAnnotations }} + {{ toYaml .Values.podAnnotations | nindent 4 }} + {{- end }} {{ if .Values.redisStandalone.recreateStatefulSetOnUpdateInvalid }} redis.opstreelabs.in/recreate-statefulset: "true" {{ end }} diff --git a/charts/redis/values.yaml b/charts/redis/values.yaml index 2ba2d76f9b..2cb11bd16e 100644 --- a/charts/redis/values.yaml +++ b/charts/redis/values.yaml @@ -143,6 +143,12 @@ tolerations: [] serviceAccountName: "" +# -- Pod annotations to be applied to all Redis pods +podAnnotations: {} + # annotation-key: "annotation-value" + # prometheus.io/scrape: "true" + # prometheus.io/port: "6379" + TLS: ca: ca.key cert: tls.crt