Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5-internal/WPB-10335
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added node based topology constraint to ensure pods are distributed uniformly on all nodes.
7 changes: 7 additions & 0 deletions charts/brig/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ spec:
fluentbit.io/parser: json
spec:
serviceAccountName: {{ .Values.serviceAccount.name }}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: brig
volumes:
- name: "brig-config"
configMap:
Expand Down
7 changes: 7 additions & 0 deletions charts/cannon/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ spec:
{{- end }}
spec:
terminationGracePeriodSeconds: {{ add .Values.config.drainOpts.gracePeriodSeconds 5 }}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: cannon
containers:
{{- if .Values.service.nginz.enabled }}
- name: nginz
Expand Down
7 changes: 7 additions & 0 deletions charts/cargohold/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ spec:
checksum/secret: {{ include (print .Template.BasePath "/secret.yaml") . | sha256sum }}
spec:
serviceAccountName: {{ .Values.serviceAccount.name }}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: cargohold
volumes:
- name: "cargohold-config"
configMap:
Expand Down
7 changes: 7 additions & 0 deletions charts/demo-smtp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ spec:
app: {{ template "demo-smtp.name" . }}
release: {{ .Release.Name }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: {{ template "demo-smtp.name" . }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image }}"
Expand Down
7 changes: 7 additions & 0 deletions charts/fake-aws-s3/templates/reaper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ spec:
labels:
app: {{ template "fullname" . }}-reaper
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: {{ template "fullname" . }}-reaper
volumes:
- name: minio-configuration
projected:
Expand Down
7 changes: 7 additions & 0 deletions charts/fake-aws-ses/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ spec:
labels:
app: {{ template "fullname" . }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: {{ template "fullname" . }}
containers:
- name: fake-aws-ses
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
7 changes: 7 additions & 0 deletions charts/fake-aws-sns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ spec:
labels:
app: {{ template "fullname" . }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: {{ template "fullname" . }}
containers:
- name: fake-aws-sns
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
7 changes: 7 additions & 0 deletions charts/fake-aws-sqs/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ spec:
annotations:
checksum/configmap: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: {{ template "fullname" . }}
containers:
- name: fake-aws-sqs
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
7 changes: 7 additions & 0 deletions charts/federator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ spec:
{{- end }}
fluentbit.io/parser: json
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: federator
volumes:
- name: "federator-config"
configMap:
Expand Down
7 changes: 7 additions & 0 deletions charts/galley/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ spec:
checksum/aws-secret: {{ include (print .Template.BasePath "/aws-secret.yaml") . | sha256sum }}
checksum/secret: {{ include (print .Template.BasePath "/secret.yaml") . | sha256sum }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: galley
serviceAccountName: {{ .Values.serviceAccount.name }}
volumes:
- name: "galley-config"
Expand Down
7 changes: 7 additions & 0 deletions charts/gundeck/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ spec:
checksum/secret: {{ include (print .Template.BasePath "/secret.yaml") . | sha256sum }}
spec:
serviceAccountName: {{ .Values.serviceAccount.name }}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: gundeck
volumes:
- name: "gundeck-config"
configMap:
Expand Down
7 changes: 7 additions & 0 deletions charts/legalhold/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ spec:
labels:
name: "{{ .Release.Name }}-hold"
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
name: "{{ .Release.Name }}-hold"
restartPolicy: Always
containers:
- name: hold
Expand Down
7 changes: 7 additions & 0 deletions charts/nginz/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ spec:
fluentbit.io/parser-nginz: nginz
spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: nginz
containers:
- name: nginz-disco
image: "{{ .Values.images.nginzDisco.repository }}:{{ .Values.images.nginzDisco.tag }}"
Expand Down
7 changes: 7 additions & 0 deletions charts/openldap/templates/openldap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: openldap
securityContext:
fsGroup: 911
volumes:
Expand Down
7 changes: 7 additions & 0 deletions charts/outlook-addin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ spec:
labels:
app: {{ include "outlook.fullname" . }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: {{ include "outlook.fullname" . }}
containers:
- name: {{ include "outlook.fullname" . }}
image: {{ .Values.containerImage }}
Expand Down
7 changes: 7 additions & 0 deletions charts/proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ spec:
checksum/configmap: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print .Template.BasePath "/secret.yaml") . | sha256sum }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: proxy
volumes:
- name: "proxy-config"
configMap:
Expand Down
7 changes: 7 additions & 0 deletions charts/reaper/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ spec:
release: {{ .Release.Name }}
spec:
serviceAccountName: reaper-role
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: reaper
containers:
- name: reaper
image: bitnami/kubectl:1.24.12
Expand Down
7 changes: 7 additions & 0 deletions charts/restund/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ spec:
labels:
{{- include "restund.selectorLabels" . | nindent 8 }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
{{- include "restund.selectorLabels" . | nindent 6 }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
hostNetwork: true
Expand Down
7 changes: 7 additions & 0 deletions charts/spar/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ spec:
# An annotation of the configmap checksum ensures changes to the configmap cause a redeployment upon `helm upgrade`
checksum/configmap: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: spar
volumes:
- name: "spar-config"
configMap:
Expand Down