Hi Randal, Yes, --node-taints flag should add taint to your nodes and you don't need to run kubectl taint nodes. Node taint is a beta feature and you need to set a flag before running gcloud create [1]. Please run following before creating a node-pool/cluster
export CLOUDSDK_CONTAINER_USE_V1_API_CLIENT=false Please let me know if you run into any issue. Thanks Ajit [1] https://cloud.google.com/container-engine/docs/node-taints On Thu, Nov 2, 2017 at 2:15 PM, Vishnu Kannan <vish...@google.com> wrote: > +Ajit (who introduced taint support in GKE) > > On Thu, Nov 2, 2017 at 1:56 PM, <randal.dean.mo...@monsanto.com> wrote: > >> I am trying to taint nodes in a gke node pool similar to this: >> >> gcloud beta container node-pools create pool-node --cluster cgs >> --machine-type n1-standard-16 --node-labels 'capability=impute' --tags >> impute --num-nodes 1 --preemptible --enable-autoscaling >> --node-taints=reserved=impute:NoSchedule --max-nodes=50 >> >> I can use kubectl to mark them tainted - similar to something I found in >> the news group >> >> kubectl taint nodes -l capability=impute reserved=impute:NoSchedule >> >> But I was thinking the documentation implied that --node-taints would >> take care of this. Is this an issue with the scaling or preemptible option? >> Is this the correct way to use this feature? >> >> Thanks in advance >> rdm >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Kubernetes user discussion and Q&A" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to kubernetes-users+unsubscr...@googlegroups.com. >> To post to this group, send email to kubernetes-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/kubernetes-users. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.