mirror of
https://github.com/bitnami/charts.git
synced 2026-02-28 15:37:42 +08:00
Add cassandra.topologySpreadConstraints (#4689)
Co-authored-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
@@ -23,4 +23,4 @@ name: cassandra
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-cassandra
|
||||
- http://cassandra.apache.org
|
||||
version: 7.0.2
|
||||
version: 7.1.0
|
||||
|
||||
@@ -120,6 +120,7 @@ The following table lists the configurable parameters of the Cassandra chart and
|
||||
| `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) |
|
||||
| `podSecurityContext.enabled` | Enable security context for Cassandra pods | `true` |
|
||||
| `podSecurityContext.fsGroup` | Group ID for the volumes of the pod | `1001` |
|
||||
| `containerSecurityContext.enabled` | Cassandra Container securityContext | `true` |
|
||||
|
||||
@@ -61,6 +61,9 @@ spec:
|
||||
{{- if .Values.podSecurityContext.enabled }}
|
||||
securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.topologySpreadConstraints }}
|
||||
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if or (and .Values.podSecurityContext.enabled .Values.volumePermissions.enabled .Values.persistence.enabled) (.Values.initContainers) }}
|
||||
initContainers:
|
||||
{{- if and .Values.podSecurityContext.enabled .Values.volumePermissions.enabled .Values.persistence.enabled }}
|
||||
|
||||
@@ -350,6 +350,12 @@ nodeSelector: {}
|
||||
##
|
||||
tolerations: []
|
||||
|
||||
## Pod topology spread constraints
|
||||
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
|
||||
## The value is evaluated as a template
|
||||
##
|
||||
topologySpreadConstraints: []
|
||||
|
||||
## Pod security context
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
|
||||
##
|
||||
|
||||
@@ -350,6 +350,12 @@ nodeSelector: {}
|
||||
##
|
||||
tolerations: []
|
||||
|
||||
## Pod topology spread constraints
|
||||
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
|
||||
## The value is evaluated as a template
|
||||
##
|
||||
topologySpreadConstraints: []
|
||||
|
||||
## Pod security context
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user