diff --git a/bitnami/etcd/Chart.yaml b/bitnami/etcd/Chart.yaml index 951a2ed59..bfb676634 100644 --- a/bitnami/etcd/Chart.yaml +++ b/bitnami/etcd/Chart.yaml @@ -24,4 +24,4 @@ name: etcd sources: - https://github.com/bitnami/bitnami-docker-etcd - https://coreos.com/etcd/ -version: 6.9.4 +version: 6.10.0 diff --git a/bitnami/etcd/README.md b/bitnami/etcd/README.md index 98abb4a26..83f146d07 100644 --- a/bitnami/etcd/README.md +++ b/bitnami/etcd/README.md @@ -262,6 +262,8 @@ The command removes all the Kubernetes components associated with the chart and | `disasterRecovery.cronjob.podAnnotations` | Pod annotations for cronjob pods | `{}` | | `disasterRecovery.cronjob.resources.limits` | Cronjob container resource limits | `{}` | | `disasterRecovery.cronjob.resources.requests` | Cronjob container resource requests | `{}` | +| `disasterRecovery.cronjob.nodeSelector` | Node labels for cronjob pods assignment | `{}` | +| `disasterRecovery.cronjob.tolerations` | Tolerations for cronjob pods assignment | `[]` | | `disasterRecovery.pvc.existingClaim` | A manually managed Persistent Volume and Claim | `""` | | `disasterRecovery.pvc.size` | PVC Storage Request | `2Gi` | | `disasterRecovery.pvc.storageClassName` | Storage Class for snapshots volume | `nfs` | diff --git a/bitnami/etcd/templates/cronjob.yaml b/bitnami/etcd/templates/cronjob.yaml index 017ca7d64..861654c9f 100644 --- a/bitnami/etcd/templates/cronjob.yaml +++ b/bitnami/etcd/templates/cronjob.yaml @@ -25,6 +25,12 @@ spec: annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.disasterRecovery.cronjob.podAnnotations "context" $) | nindent 12 }} {{- end }} spec: + {{- if .Values.disasterRecovery.cronjob.nodeSelector }} + nodeSelector: {{- toYaml .Values.disasterRecovery.cronjob.nodeSelector | nindent 12 }} + {{- end }} + {{- if .Values.disasterRecovery.cronjob.tolerations }} + tolerations: {{- toYaml .Values.disasterRecovery.cronjob.tolerations | nindent 12 }} + {{- end }} {{- include "etcd.imagePullSecrets" . | nindent 10 }} restartPolicy: OnFailure {{- if .Values.podSecurityContext.enabled }} diff --git a/bitnami/etcd/values.yaml b/bitnami/etcd/values.yaml index 222f0a241..713562dcd 100644 --- a/bitnami/etcd/values.yaml +++ b/bitnami/etcd/values.yaml @@ -728,6 +728,16 @@ disasterRecovery: ## memory: 1Gi limits: {} requests: {} + + ## @param disasterRecovery.cronjob.nodeSelector Node labels for cronjob pods assignment + ## Ref: https://kubernetes.io/docs/user-guide/node-selection/ + ## + nodeSelector: {} + ## @param disasterRecovery.cronjob.tolerations Tolerations for cronjob pods assignment + ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + ## + tolerations: [] + pvc: ## @param disasterRecovery.pvc.existingClaim A manually managed Persistent Volume and Claim ## If defined, PVC must be created manually before volume will be bound