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?
- Execute gcloud container clusters get-credentials specifying the cluster name and location to populate the local kubeconfig file.Answer
- Configure node selectors and tolerations on stateless worker deployments to allow scheduling on a dedicated Spot VM node pool.Answer
- CRun gcloud config set container/cluster with the cluster name to configure cluster authentication context for kubectl.
- DDeploy persistent relational database instances onto a Spot VM node pool with default configurations to reduce overall compute costs.
Answer
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.
Step-by-Step Solution
Key Concept
GKE Cluster Credential Acquisition and Workload Placement on Spot Node Pools