Azure / kubernetes-volume-drivers

Kubernetes volume drivers for Azure
MIT License
126 stars 55 forks source link

Support for tainted nodes #121

Open wweghe opened 2 years ago

wweghe commented 2 years ago

Is your feature request related to a problem?/Why is this needed I would need support for "Tainted" kubernetes nodes. I'm running the yaml-files on my AKS cluster, and the nodes where I would need the nvme storage are tainted, to only allow "certain" pods to run. Obvisouly the local-volume-provisioner-*** pods do not have the necessary tolerations, so they are not allowed to run on my tainted nodes.

Describe the solution you'd like in detail An example of how to tolerate the pods, so they are allowed to run on my tainted nodes

Describe alternatives you've considered Untainting my nodes, but this would lead to other problems

Additional context The taints are necessary , because the software, running on the AKS cluster , needs those taints, and I cannot change those

andyzhangx commented 2 years ago

here is an example to add tolerations in the daemonset:

      tolerations:
        - operator: "Exists"

https://github.com/kubernetes-sigs/blob-csi-driver/blob/939ef16cdadcce7c7a9b160516d0ba3d7a9c9f59/deploy/csi-blob-node.yaml#L36-L37