Skip to content

Commit 81e52ac

Browse files
authored
adding optional support for topologySpreadConstraints to helm chart (#2575)
* adding support for topologySpreadConstraints * update readme
1 parent 118513a commit 81e52ac

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

helm/aws-load-balancer-controller/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ The default values set by the application itself can be confirmed [here](https:/
177177
| `nodeSelector` | Node labels for controller pod assignment | `{}` |
178178
| `tolerations` | Controller pod toleration for taints | `{}` |
179179
| `affinity` | Affinity for pod assignment | `{}` |
180+
| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `{}` |
180181
| `podAnnotations` | Annotations to add to each pod | `{}` |
181182
| `podLabels` | Labels to add to each pod | `{}` |
182183
| `rbac.create` | if `true`, create and use RBAC resources | `true` |

helm/aws-load-balancer-controller/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,7 @@ spec:
196196
{{- if .Values.priorityClassName }}
197197
priorityClassName: {{ .Values.priorityClassName | quote }}
198198
{{- end }}
199+
{{- with .Values.topologySpreadConstraints }}
200+
topologySpreadConstraints:
201+
{{- toYaml . | nindent 8 }}
202+
{{- end }}

helm/aws-load-balancer-controller/test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ tolerations: []
6363

6464
affinity: {}
6565

66+
# topologySpreadConstraints is a stable feature of k8s v1.19 which provides the ability to
67+
# control how Pods are spread across your cluster among failure-domains such as regions, zones,
68+
# nodes, and other user-defined topology domains.
69+
#
70+
# more details here: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
71+
topologySpreadConstraints: {}
72+
6673
podAnnotations: {}
6774

6875
podLabels: {}

helm/aws-load-balancer-controller/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ tolerations: []
6767

6868
affinity: {}
6969

70+
# topologySpreadConstraints is a stable feature of k8s v1.19 which provides the ability to
71+
# control how Pods are spread across your cluster among failure-domains such as regions, zones,
72+
# nodes, and other user-defined topology domains.
73+
#
74+
# more details here: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
75+
topologySpreadConstraints: {}
76+
7077
updateStrategy: {}
7178
# type: RollingUpdate
7279
# rollingUpdate:

0 commit comments

Comments
 (0)