Skip to content

Commit cf3548f

Browse files
committed
fix: not schedule driver pod on virtual node
1 parent 2a8a721 commit cf3548f

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)