Soru

Zorluk: OrtaDeploying and Managing Google Kubernetes Engine (GKE) Clusters and Workloads

A cloud engineer needs to add a new dedicated pool of compute nodes to an existing GKE Standard cluster named `app-cluster` in zone `us-central1-a`. The new nodes must use the `e2-highmem-16` machine type to support memory-intensive workloads. Which `gcloud` command should the engineer execute to fulfill this requirement?

  1. gcloud container node-pools create memory-pool --cluster=app-cluster --machine-type=e2-highmem-16 --zone=us-central1-aCevap
  2. B
    gcloud container clusters update app-cluster --node-pool=memory-pool --machine-type=e2-highmem-16 --zone=us-central1-a
  3. C
    gcloud compute instances create memory-pool --cluster=app-cluster --machine-type=e2-highmem-16 --zone=us-central1-a
  4. D
    kubectl scale node-pool memory-pool --replicas=3 --machine-type=e2-highmem-16

Cevap

Execute gcloud container node-pools create memory-pool --cluster=app-cluster --machine-type=e2-highmem-16 --zone=us-central1-a to provision a new node pool with the desired machine type on the existing cluster.
To add a new pool of nodes to an existing GKE Standard cluster with a customized machine type, the command `gcloud container node-pools create` must be used along with specifying the target cluster name, desired machine type, and zone location.

Adım Adım Çözüm

1
Identify the target resource and operation
The requirement is to provision additional infrastructure (a node pool with specialized machine types) on an existing Google Kubernetes Engine cluster.
GCP infrastructure operations require Google Cloud management tools rather than Kubernetes in-cluster API calls.
2
Select the correct gcloud group and subcommand
Use `gcloud container node-pools create` specified with `--cluster`, `--machine-type`, and `--zone` flags.
Creating additional node pools requires the node-pools sub-command group under container.

Anahtar Kavram

GKE Node Pool Provisioning and Management
Bu soruyu puanla