An organization is deploying infrastructure on Google Kubernetes Engine (GKE) in region us-central1 to support two distinct applications. The first application consists of fault-tolerant, stateless batch-processing jobs that can tolerate node interruptions. The second application is a legacy security monitoring daemon that requires direct access to host kernel modules and privileged Linux capabilities on the underlying nodes. Additionally, an administrator needs to configure their local workstation to manage workloads on this new cluster named 'analytics-cluster' using kubectl. Which TWO actions or configuration choices should the administrator implement to meet these requirements?
- Deploy a GKE Standard cluster containing a dedicated Spot VM node pool for the stateless batch jobs, while hosting the security daemon on nodes with privileged execution enabled.Answer
- Execute `gcloud container clusters get-credentials analytics-cluster --region us-central1` on the workstation to fetch cluster endpoint and authentication details into kubeconfig.Answer
- CExecute `gcloud config set container/cluster analytics-cluster` on the workstation to authorize local kubectl commands against the GKE control plane.
- DDeploy a GKE Autopilot cluster using Spot pod resources to host both the stateless batch workloads and the host-kernel monitoring security daemon.
Answer
The correct choices are deploying a GKE Standard cluster with a Spot VM node pool for fault-tolerant jobs and privileged node support, and executing `gcloud container clusters get-credentials analytics-cluster --region us-central1` to configure workstation authentication for kubectl.
Deploying a GKE Standard cluster with a Spot VM node pool satisfies both requirements: Spot VMs minimize costs for stateless, fault-tolerant batch jobs, while Standard mode permits running privileged pods that access underlying node kernel modules. Running `gcloud container clusters get-credentials` correctly populates the local kubeconfig file with the cluster endpoint and authentication tokens required for kubectl operation.
Step-by-Step Solution
Key Concept
GKE Cluster Modes & Workstation Kubeconfig Management