diff --git a/README.md b/README.md index a49ff1f..1098683 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ The command removes all the Kubernetes components associated with the chart and | serviceAccount.name | string | `""` | Service account name to use. If not set the "default" service account will be used | | startupProbe | object | `{"failureThreshold":20,"httpGet":{"path":"/","port":"http"},"periodSeconds":10,"timeoutSeconds":5}` | Configures a startupProbe to ensure fusionauth has finished starting up | | tolerations | list | `[]` | Define tolerations for kubernetes to use when scheduling fusionauth pods. | +| topologySpreadConstraints | list | `[]` | Define topologySpreadConstraints for kubernetes to use when scheduling fusionauth pods. | ## Releasing the Chart diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index cdd84ff..8c7e9c4 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -169,5 +169,9 @@ spec: {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} {{- end }} restartPolicy: Always diff --git a/chart/values.schema.json b/chart/values.schema.json index 3cdbd20..d2d53b6 100644 --- a/chart/values.schema.json +++ b/chart/values.schema.json @@ -298,6 +298,9 @@ }, "tolerations": { "type": "array" + }, + "topologySpreadConstraints": { + "type": "array" } } } diff --git a/chart/values.yaml b/chart/values.yaml index 107dddd..0f77894 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -234,6 +234,10 @@ tolerations: [] # affinty -- Define affinity for kubernetes to use when scheduling fusionauth pods. affinity: {} +# topologySpreadConstraints -- Define topologySpreadConstraints for kubernetes to use +# when scheduling fusionauth pods. +topologySpreadConstraints: [] + # dnsConfig -- Define dnsConfig for fusionauth pods. dnsConfig: {} # dnsPolicy -- Define dnsPolicy for fusionauth pods.