2V0-71.23 Question 206
Select 3You are managing a Tanzu Kubernetes Grid (TKG) cluster and need to scale the worker node count to accommodate a higher workload. Which of the following steps should you perform to scale the cluster up?
- A
Edit the cluster configuration YAML file to update the desired worker node count and apply the changes.
- B
Use the
kubectl scalecommand to scale the deployment directly. - C
Run the
tanzu cluster scalecommand to modify the desired node count of the cluster. - D
Update the Cluster API MachineDeployment object to reflect the desired number of replicas.
- E
Manually add new worker nodes to the cluster by joining them to the control plane.
Show answer and explanation
Correct answers: A, C, D
Explanation
To scale a Tanzu Kubernetes Grid (TKG) cluster up or down, you can use several methods. The most common approaches are updating the cluster configuration YAML and applying it, using the tanzu cluster scale CLI command, or modifying the Cluster API MachineDeployment object directly. These methods ensure the cluster's desired state is managed declaratively and integrated with the TKG lifecycle management system. Methods like kubectl scale or manually adding nodes are not applicable for scaling the cluster itself, as they are intended for application workloads or are operationally inefficient.
- A. Correct.
Correct: Editing the cluster configuration YAML file and applying the changes is one of the standard ways to scale a TKG cluster. This allows the desired state of worker nodes to be updated declaratively.
- B. Incorrect.
Incorrect:
kubectl scaleis used to scale workloads (e.g., Deployments, StatefulSets) running on Kubernetes, not for scaling the cluster nodes themselves. - C. Correct.
Correct: The
tanzu cluster scalecommand is a straightforward way to scale a TKG cluster by specifying the desired worker node count. - D. Correct.
Correct: Updating the Cluster API MachineDeployment object is a valid method to scale the worker nodes since Tanzu Kubernetes Grid relies on Cluster API for managing infrastructure.
- E. Incorrect.
Incorrect: Manually adding worker nodes is not the recommended approach for scaling a TKG cluster. Scaling should be done using declarative methods or Tanzu CLI commands.