Skip to content

Commit

Permalink
Add toleration to CSI nodeplugin
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DavidFair authored and brtkwr committed Mar 23, 2021
1 parent 42f8c97 commit fa4a6ba
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -391,6 +391,8 @@ spec:
labels:
app: csi-cinder-nodeplugin
spec:
tolerations:
- operator: Exists
serviceAccount: csi-cinder-node-sa
hostNetwork: true
containers:
Expand Down

1 comment on commit fa4a6ba

@nhatsangvn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @DavidFair , @brtknr
I'm not sure if this toleration work, seem it's missing the key field.

Please sign in to comment.