
Google Associate Cloud Engineer
Get started today
Ultimate access to all questions.
You've created a Kubernetes engine cluster named 'project-1', which has a cluster pool named 'primary-node-pool'. You've realized that you need to increase the total number of nodes within your cluster pool from 10 to 20 to meet capacity demands. What is the correct command to change the number of nodes in your pool?
You've created a Kubernetes engine cluster named 'project-1', which has a cluster pool named 'primary-node-pool'. You've realized that you need to increase the total number of nodes within your cluster pool from 10 to 20 to meet capacity demands. What is the correct command to change the number of nodes in your pool?
Real Exam
Explanation:
The correct command to change the number of nodes in your pool is:
gcloud container clusters resize project-1 --node pool 'primary-node-pool' --num-nodes 20
Here’s a breakdown of the command:
gcloud container clusters
: This specifies that you’re working with Google Cloud Container Clusters (GKE).resize
: This indicates that you want to change the size (number of nodes) of a cluster.project-1
: This is the name of your Kubernetes engine cluster.--node pool 'primary-node-pool'
: This specifies the name of the cluster pool you want to modify.--num-nodes 20
: This sets the desired number of nodes in the pool to 20.