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]>
  • Loading branch information
duckhawk authored Mar 7, 2024
1 parent 47bf2e4 commit e8e54ae
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 e8e54ae

Please sign in to comment.