Skip to content

Commit

Permalink
[controller] Add node affinity (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <[email protected]>
Signed-off-by: Aleksandr Zimin <[email protected]>
  • Loading branch information
duckhawk authored and AleksZimin committed Mar 18, 2024
1 parent 00af364 commit 5feca9b
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions templates/agent/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,25 @@ spec:
spec:
{{- include "helm_lib_priority_class" (tuple . "cluster-medium") | nindent 6 }}
{{- include "helm_lib_tolerations" (tuple . "any-node" "storage-problems") | nindent 6 }}
nodeSelector:
storage.deckhouse.io/sds-drbd-node: ""
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: storage.deckhouse.io/sds-replicated-volume-node
operator: In
values:
- ""
- matchExpressions:
- key: storage.deckhouse.io/sds-local-volume-node
operator: In
values:
- ""
- matchExpressions:
- key: storage.deckhouse.io/sds-drbd-node
operator: In
values:
- ""
imagePullSecrets:
- name: {{ .Chart.Name }}-module-registry
serviceAccountName: sds-node-configurator
Expand Down

0 comments on commit 5feca9b

Please sign in to comment.