Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add or edit label on existing node pool in GKE

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?

The label field is unchangeable

like image 215
malcolm Avatar asked Mar 21 '19 06:03

malcolm


People also ask

How do you upgrade node pool Gke?

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.

How do I add a node pool to a Gke cluster?

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.

What is Gke node pool?

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.


1 Answers

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.

like image 146
Robert Bailey Avatar answered Sep 22 '22 22:09

Robert Bailey