Node pool operations
From the GKE architecture, we know that the node pool is the default place we host applications. As mentioned in the GKE architecture section in Chapter 5, you can’t directly migrate applications from one node pool to another. What we need to do is to redeploy applications from one node pool to another.
As with every operation, we need to first know how many and what kind of node pools we currently have. In the next section, we start by listing existing node pools.
Viewing node pools
Before we start any pool activities, it is good to know how to list existing node pools.
Cloud console
To view existing node pools, we can view them in Cloud console by clicking on our cluster and then NODES:
Figure 6.14 – Node pool details in Cloud console
Command line
To list existing pools using the command line, we need to execute the following command:
gcloud container node-pools list --cluster CLUSTER_NAME
The next...