2V0-71.23 Question 208
Select 3You are managing a Tanzu Kubernetes Grid (TKG) cluster running in a production environment. The workload demand has increased, and you need to scale the worker nodes in the cluster. Which steps should you take to scale the cluster up?
- A
Edit the cluster configuration file to update the worker node count and apply the changes using the Tanzu CLI.
- B
Directly modify the number of running pods in the Kubernetes API server using kubectl.
- C
Use the vSphere Client to manually add more virtual machines to the cluster’s node pool.
- D
Run the Tanzu CLI command 'tanzu cluster scale' with the updated worker node count.
- E
Restart the Kubernetes API server to automatically detect and apply the new node count.
- F
Ensure the infrastructure provider (e.g., vSphere, AWS, Azure) has sufficient resources to support the additional nodes.
Show answer and explanation
Correct answers: A, D, F
Explanation
Scaling a Tanzu Kubernetes Grid (TKG) cluster involves updating the desired worker node count via the Tanzu CLI or configuration files. The process ensures the changes are propagated and applied through the cluster management tools. Additionally, the underlying infrastructure must have sufficient resources to accommodate the new nodes. Directly modifying pods or manually adding VMs bypasses the cluster management workflow and is not recommended.
- A. Correct.
Correct: Editing the cluster configuration file and applying changes via the Tanzu CLI is the recommended approach to scale up a TKG cluster.
- B. Incorrect.
Incorrect: Modifying the number of running pods directly does not scale the cluster. Pods are workload entities, not nodes.
- C. Incorrect.
Incorrect: Adding virtual machines manually does not integrate them into the Kubernetes cluster effectively. Scaling must be managed through the Tanzu CLI or configuration tools.
- D. Correct.
Correct: The 'tanzu cluster scale' command directly allows for scaling the number of worker nodes in the cluster.
- E. Incorrect.
Incorrect: Restarting the Kubernetes API server is not required for scaling operations and does not influence the node count.
- F. Correct.
Correct: Ensuring the infrastructure provider has sufficient resources is a necessary prerequisite for scaling operations to succeed.