diff --git a/bitnami/memcached/Chart.yaml b/bitnami/memcached/Chart.yaml index 52df32a1a..7be49767c 100644 --- a/bitnami/memcached/Chart.yaml +++ b/bitnami/memcached/Chart.yaml @@ -22,4 +22,4 @@ name: memcached sources: - https://github.com/bitnami/bitnami-docker-memcached - http://memcached.org/ -version: 5.9.0 +version: 5.10.0 diff --git a/bitnami/memcached/README.md b/bitnami/memcached/README.md index 473052856..71243bbb9 100644 --- a/bitnami/memcached/README.md +++ b/bitnami/memcached/README.md @@ -109,6 +109,7 @@ The following tables lists the configurable parameters of the Memcached chart an | `affinity` | Affinity for pod assignment | `{}` (evaluated as a template) | | `nodeSelector` | Node labels for pod assignment | `{}` (evaluated as a template) | | `tolerations` | Tolerations for pod assignment | `[]` (evaluated as a template) | +| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `{}` (evaluated as a template) | | `priorityClassName` | Controller priorityClassName | `nil` | | `serviceAccount.create` | Enable creation of ServiceAccount for memcached pods | `true` | | `serviceAccount.name` | The name of the service account to use. If not set and `create` is `true`, a name is generated | Generated using the `memcached.serviceAccountName` template | diff --git a/bitnami/memcached/templates/deployment.yaml b/bitnami/memcached/templates/deployment.yaml index 79a72912b..b43ecd256 100644 --- a/bitnami/memcached/templates/deployment.yaml +++ b/bitnami/memcached/templates/deployment.yaml @@ -49,6 +49,9 @@ spec: {{- if .Values.tolerations }} tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" .) | nindent 8 }} {{- end }} + {{- if .Values.topologySpreadConstraints }} + topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" .) | nindent 8 }} + {{- end }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName | quote }} {{- end }} diff --git a/bitnami/memcached/templates/statefulset.yaml b/bitnami/memcached/templates/statefulset.yaml index 7acab7f3e..131c67740 100644 --- a/bitnami/memcached/templates/statefulset.yaml +++ b/bitnami/memcached/templates/statefulset.yaml @@ -50,6 +50,9 @@ spec: {{- if .Values.tolerations }} tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" .) | nindent 8 }} {{- end }} + {{- if .Values.topologySpreadConstraints }} + topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" .) | nindent 8 }} + {{- end }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName | quote }} {{- end }} diff --git a/bitnami/memcached/values.yaml b/bitnami/memcached/values.yaml index 38827c902..10ce44e94 100644 --- a/bitnami/memcached/values.yaml +++ b/bitnami/memcached/values.yaml @@ -203,6 +203,11 @@ nodeSelector: {} ## tolerations: [] +## Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template +## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods +## +topologySpreadConstraints: {} + ## Pod priority ## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ ##