QuestionQ2

VerifiedSection 5 - Troubleshoot and optimize the VMware Solution

An administrator enabled cluster scaling by running the following command:

kubectl edit deployment <deployment-name>

The administrator changed spec.replicas from 5 to 10. After the cluster was redeployed, the deployment was running 5 replicas.

What accounts for this behavior?

Explanation

Editing spec.replicas with kubectl edit updates the live Deployment, but a redeployment that reapplies an unchanged declarative YAML configuration restores the replica count defined in that configuration. The configuration used to deploy the cluster therefore still specified five pods.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!