Skip to content

Commit

Permalink
[controller] add pod antiaffinity rules (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <vasily.oleynikov@flant.com>
  • Loading branch information
duckhawk authored Jun 26, 2024
1 parent 5c53a9c commit 4d3ba00
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions templates/sds-local-volume-controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ spec:
{{- include "helm_lib_node_selector" (tuple . "system") | nindent 6 }}
{{- include "helm_lib_tolerations" (tuple . "system") | nindent 6 }}
{{- include "helm_lib_module_pod_security_context_run_as_user_nobody" . | nindent 6 }}
{{- if (include "helm_lib_ha_enabled" .) }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- sds-local-volume-controller
topologyKey: kubernetes.io/hostname
weight: 100
{{- end }}
imagePullSecrets:
- name: {{ .Chart.Name }}-module-registry
serviceAccountName: sds-local-volume-controller
Expand Down

0 comments on commit 4d3ba00

Please sign in to comment.