Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions charts/k8s-service/templates/_deployment_spec.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}

{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{ toYaml . | indent 8 }}
{{- end }}

{{- with .Values.priorityClassName }}
priorityClassName:
{{ toYaml . | indent 8 }}
Expand Down
3 changes: 2 additions & 1 deletion charts/k8s-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,12 @@ secrets: {}
# like: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
containerResources: {}

# nodeSelector and affinity specify restrictions on what node this pod should be scheduled on.
# nodeSelector, affinity and topologySpreadConstraints specify restrictions on what node this pod should be scheduled on.
# NOTE: These variables are injected directly into the pod spec. See the official documentation for what this might look
# like: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
nodeSelector: {}
affinity: {}
topologySpreadConstraints: []

# priorityClassName assigns a priorityClass to the deployment allowing pods to preempt or be preempted.
# See https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
Expand Down