Skip to content

Commit 8b9e508

Browse files
authored
Merge pull request #260 from andyzhangx/no-schedule-on-virtual-node
fix: not schedule driver pod on virtual node
2 parents 2a8a721 + cf3548f commit 8b9e508

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

charts/latest/blob-csi-driver/templates/csi-blob-node.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ spec:
1818
serviceAccountName: csi-blob-node-sa
1919
nodeSelector:
2020
kubernetes.io/os: linux
21+
affinity:
22+
nodeAffinity:
23+
requiredDuringSchedulingIgnoredDuringExecution:
24+
nodeSelectorTerms:
25+
- matchExpressions:
26+
- key: type
27+
operator: NotIn
28+
values:
29+
- virtual-kubelet
2130
priorityClassName: system-node-critical
2231
tolerations:
2332
- operator: "Exists"

deploy/csi-blob-node.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ spec:
1818
serviceAccountName: csi-blob-node-sa
1919
nodeSelector:
2020
kubernetes.io/os: linux
21+
affinity:
22+
nodeAffinity:
23+
requiredDuringSchedulingIgnoredDuringExecution:
24+
nodeSelectorTerms:
25+
- matchExpressions:
26+
- key: type
27+
operator: NotIn
28+
values:
29+
- virtual-kubelet
2130
priorityClassName: system-node-critical
2231
tolerations:
2332
- operator: "Exists"

0 commit comments

Comments
 (0)