01 Run projects list command (Windows/macOS/Linux) with custom query filters to list the ID of each project available in your Google Cloud account:
gcloud projects list
--format="table(projectId)"
02 The command output should return the requested GCP project ID(s):
PROJECT_ID
cc-bigdata-project-123123
cc-iot-app-project-112233
03 Run container clusters list command (Windows/macOS/Linux) using the ID of the GCP project that you want to examine as the identifier parameter and custom query filters to describe the name and the region of each GKE cluster created for the selected project:
gcloud container clusters list
--project cc-bigdata-project-123123
--format="(NAME,LOCATION)"
04 The command output should return the requested cluster names and their regions:
NAME LOCATION
cc-gke-frontend-cluster us-central1
cc-gke-backend-cluster us-central1
05 Run container node-pools list command (Windows/macOS/Linux) using the name of the GKE cluster that you want to examine as the identifier parameter, to describe the name of each node pool provisioned for the selected cluster:
gcloud container node-pools list
--cluster=cc-gke-frontend-cluster
--region=us-central1
--format="(NAME)"
06 The command output should return the requested cluster node pool name(s):
NAME
cc-gke-frontend-pool-001
cc-gke-frontend-pool-002
cc-gke-frontend-pool-003
07 Run container node-pools describe command (Windows/macOS/Linux) using the name of the cluster node pool that you want to examine as the identifier parameter and custom output filtering to describe the Auto-Upgrade feature status for the selected node pool:
gcloud container node-pools describe cc-gke-frontend-pool-001
--cluster=cc-gke-frontend-cluster
--region=us-central1
--format="yaml(management.autoUpgrade)"
08 The command output should return the requested feature status:
If the
container node-pools describe command output returns
null, or an empty object for the
management configuration attribute (i.e.
{}), as shown in the output example above, the Auto-Upgrade feature is not enabled for the nodes provisioned within the selected Google Kubernetes Engine (GKE) cluster node pool.
09 Repeat step no. 7 and 8 for each node pool provisioned for the selected GKE cluster.
10 Repeat steps no. 5 – 9 for each GKE cluster created for the selected GCP project.
11 Repeat steps no. 3 – 10 for each GCP project deployed in your Google Cloud account.