Skip to content

Commit fa4a6ba

Browse files
DavidFairbrtkwr
authored andcommitted
Add toleration to CSI nodeplugin
This commit allows the CSI nodeplugin to start on machines with taints. A use case is nodegroups; a dedicated machine (e.g. ASICs and GPU) will join the cluster with a pre-defined taint so that pods can't grab valuable resources. However the taint currently stops the node from starting the plugin and getting a node ID, so we cannot use cinder volumes within pods. This commit ports the work done by jichenjc (kubernetes/cloud-provider-openstack#1276) into Magnum fixing the issue here too. Story: 2007048 Task: 42097 Change-Id: I8dec787660604d52156d71617d2bdda73fb62e9c
1 parent 42f8c97 commit fa4a6ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

magnum/drivers/common/templates/kubernetes/fragments/enable-cinder-csi.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ spec:
391391
labels:
392392
app: csi-cinder-nodeplugin
393393
spec:
394+
tolerations:
395+
- operator: Exists
394396
serviceAccount: csi-cinder-node-sa
395397
hostNetwork: true
396398
containers:

0 commit comments

Comments
 (0)