Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Taint InstanceGroup on Kubernetes using kubectl

I can taint a node but not an instance group.

kubectl taint nodes nodeA 
kops.k8s.io/instancegroup=loadbalancer:NoSchedule

can we do below

kubectl taint instanceGroup loadbalancer:NoSchedule 


error: at least one taint update is required
like image 447
AhmFM Avatar asked Jun 24 '26 08:06

AhmFM


1 Answers

Instance Group is GCP thing and not a Kubernetes thing. Taints can only be done on nodes. So you will have to taint the nodes manually.

If you named the nodes in your instance group to something that matches mygroup. For example, you could do something like this:

$ kubectl taint nodes `kubectl get nodes -o name | grep mygroup` key=value:NoSchedule
like image 165
Rico Avatar answered Jun 30 '26 02:06

Rico



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!