I can taint a node but not an instance group.
kubectl taint nodes nodeA
kops.k8s.io/instancegroup=loadbalancer:NoSchedulecan we do below
kubectl taint instanceGroup loadbalancer:NoSchedule
error: at least one taint update is requiredInstance 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