Soru

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

A cloud administrator is configuring a local command-line environment to deploy workloads onto a newly provisioned Google Kubernetes Engine (GKE) Standard cluster. The cluster hosts both critical application endpoints and fault-tolerant stateless background workers. Which TWO actions should the administrator perform to establish cluster management access and properly deploy these stateless workloads?

  1. Execute gcloud container clusters get-credentials specifying the cluster name and location to populate the local kubeconfig file.Cevap
  2. Configure node selectors and tolerations on stateless worker deployments to allow scheduling on a dedicated Spot VM node pool.Cevap
  3. C
    Run gcloud config set container/cluster with the cluster name to configure cluster authentication context for kubectl.
  4. D
    Deploy persistent relational database instances onto a Spot VM node pool with default configurations to reduce overall compute costs.

Cevap

To manage and deploy workloads on GKE, administrators must execute gcloud container clusters get-credentials to populate kubeconfig, and configure stateless, fault-tolerant workloads with appropriate tolerations and node selectors to run on Spot VM node pools.
Establishing cluster access requires executing gcloud container clusters get-credentials to generate the kubeconfig context needed for kubectl operations. For workload management, stateless fault-tolerant jobs are ideal candidates for Spot VM node pools when paired with proper node selectors and tolerations.

Adım Adım Çözüm

1
Authenticate and update local Kubernetes credentials
Local environment obtains control plane endpoint info and credentials in kubeconfig
kubectl requires active credentials and endpoint parameters generated by gcloud container clusters get-credentials to interact with the GKE control plane.
2
Align workload traits with compute infrastructure types
Stateless workloads are assigned to cost-optimized Spot VM node pools
Spot VMs offer significantly lower costs for workloads that are stateless and resilient to sudden termination.

Anahtar Kavram

GKE Cluster Credential Acquisition and Workload Placement on Spot Node Pools
Bu soruyu puanla