Google Associate Cloud Engineer Question 204
Select 3Google Cloud PlatformYou are managing a Kubernetes cluster on Google Kubernetes Engine (GKE) and are tasked with optimizing resource usage for workloads that require different machine types. You decide to create a new node pool. Which of the following actions are necessary to correctly set up and utilize multiple node pools in your GKE cluster?
- A
A. Specify the machine type for the new node pool during its creation.
- B
B. Migrate existing workloads automatically to the new node pool without intervention.
- C
C. Assign node selectors in your Pod specifications to target specific node pools.
- D
D. Use taints and tolerations to schedule certain workloads to the new node pool.
- E
E. Enable auto-repair and auto-upgrade for the new node pool explicitly.
Show answer and explanation
Correct answers: A, C, D
Explanation
To effectively use multiple node pools in a GKE cluster, you must specify the machine type during node pool creation to ensure it meets workload requirements. You also need to use Kubernetes features like node selectors, taints, and tolerations to manage workload placement across different node pools. These features allow you to optimize and segregate workloads based on their resource needs, ensuring efficient use of the cluster's resources.
- A. Correct.
A. Correct. When creating a new node pool, specifying the machine type is crucial as it determines the resource characteristics of the nodes within that pool.
- B. Incorrect.
B. Incorrect. Existing workloads do not automatically migrate to new node pools. You need to update the workload configurations to target the new node pool.
- C. Correct.
C. Correct. Using node selectors in your Pod specifications allows you to direct workloads to specific node pools by matching node labels.
- D. Correct.
D. Correct. Taints and tolerations are used to manage which workloads can be scheduled onto particular nodes, allowing you to control workload placement in the new node pool.
- E. Incorrect.
E. Incorrect. While enabling auto-repair and auto-upgrade is a best practice, it is not specifically necessary to utilize multiple node pools. These are management features independent of node pool usage.