I created GKE cluster with node pool, but I forgot to label the nodes... In Google Cloud Platform UI I can't edit or add Kubernetes labels for the existing node pool... How can I do it without recreating whole node pool?
In the Node Pools section, click the name of the node pool that you want to upgrade. Click edit Edit. Click Change under Node version. Select the desired version from the Node version drop-down list, then click Change.
Add a node pool You can add a new node pool to a GKE Standard cluster using the gcloud CLI or the Google Cloud console. GKE also supports node auto-provisioning, which automatically manages the node pools in your cluster based on scaling requirements.
A node pool is a group of nodes within a cluster that all have the same configuration. Node pools use a NodeConfig specification. Each node in the pool has a Kubernetes node label, cloud.google.com/gke-nodepool , which has the node pool's name as its value.
It isn't possible to edit the labels without recreating nodes, so GKE does not support updating labels on node pools.
In GKE, the Kubernetes labels are applied to nodes by the kubelet
binary which receives them as flags passed in via the node startup script. As it is just as disruptive (or more disruptive) to recreate all nodes in a node pool as to create a new node pool, updating the labels isn't a supported operation for updating a node pool.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With