Deploy on a worker in cluster Kubernetes Deploy on a worker in cluster Kubernetes kubernetes kubernetes

Deploy on a worker in cluster Kubernetes


This is a Community Wiki answer, posted for better visibility, so feel free to edit it and add any additional details you consider important.

As the OP mentioned in the comments, the problem has already been solved by setting the appropriate taint on master (control plane) node, following coderanger's suggestion:

Did you set a taint on the control plane node? – coderanger May 21 at9:14

No and with a kubectl taint nodes vlinrhelkube01key1=value1:NoSchedule I've resolve my problem ! Thanks ! – BaptisteGuillaud May 21 at 9:22

As we can read here:

You add a taint to a node using kubectltaint.For example,

kubectl taint nodes node1 key1=value1:NoSchedule

places a taint on node node1. The taint has key key1, valuevalue1, and taint effect NoSchedule. This means that no pod willbe able to schedule onto node1 unless it has a matchingtoleration.


By default Kubernetes donesn't deploy your application to master nodes.

But this is can change regarding to your configuration.

If you e.g. use RKE2 as Distribution work will be scheduled between all nodes by default.