diff --git a/deployments/helm-chart/README.md b/deployments/helm-chart/README.md index 01b72993d6..76592414ca 100644 --- a/deployments/helm-chart/README.md +++ b/deployments/helm-chart/README.md @@ -172,6 +172,7 @@ Parameter | Description | Default `controller.terminationGracePeriodSeconds` | The termination grace period of the Ingress Controller pod. | 30 `controller.tolerations` | The tolerations of the Ingress Controller pods. | [] `controller.affinity` | The affinity of the Ingress Controller pods. | {} +`controller.topologySpreadConstraints` | The topology spread constraints of the Ingress controller pods. | {} `controller.volumes` | The volumes of the Ingress Controller pods. | [] `controller.volumeMounts` | The volumeMounts of the Ingress Controller pods. | [] `controller.initContainers` | InitContainers for the Ingress Controller pods. | [] diff --git a/deployments/helm-chart/templates/controller-deployment.yaml b/deployments/helm-chart/templates/controller-deployment.yaml index 07a3f2297a..59fce319a8 100644 --- a/deployments/helm-chart/templates/controller-deployment.yaml +++ b/deployments/helm-chart/templates/controller-deployment.yaml @@ -50,6 +50,10 @@ spec: affinity: {{ toYaml .Values.controller.affinity | indent 8 }} {{- end }} +{{- if .Values.controller.topologySpreadConstraints }} + topologySpreadConstraints: +{{ toYaml .Values.controller.topologySpreadConstraints | indent 8 }} +{{- end }} {{- if or (.Values.controller.volumes) (.Values.nginxServiceMesh.enable) }} volumes: {{- end }} diff --git a/deployments/helm-chart/values.yaml b/deployments/helm-chart/values.yaml index 2a1469c239..4a7e26d74c 100644 --- a/deployments/helm-chart/values.yaml +++ b/deployments/helm-chart/values.yaml @@ -118,6 +118,9 @@ controller: ## The affinity of the Ingress Controller pods. affinity: {} + ## The topology spread constraints of the Ingress controller pods. + topologySpreadConstraints: {} + ## The volumes of the Ingress Controller pods. volumes: [] # - name: extra-conf