Skip to content

Commit

Permalink
limit plugin daemonset to run on worker nodes only
Browse files Browse the repository at this point in the history
limit plugin daemonset to run on worker nodes only using node
anti-affinity.

Signed-off-by: Halim, Abdul <[email protected]>
  • Loading branch information
ahalimx86 committed Apr 23, 2024
1 parent ac0005d commit d5c32ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions e2e/artefacts/k8s/vsp-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ spec:
labels:
name: vsp
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: DoesNotExist
- key: node-role.kubernetes.io/master
operator: DoesNotExist
hostNetwork: true
automountServiceAccountToken: false
containers:
Expand Down

0 comments on commit d5c32ce

Please sign in to comment.