
Ultimate access to all questions.
Your team is excited about implementing desired state configuration for your infrastructure, particularly by storing Kubernetes Deployments in YAML. After creating a Kubernetes Deployment using the kubectl apply command with a YAML file, you now need to adjust the number of replicas. What is the correct approach to update the Deployment?
A
Use the kubectl scale command to immediately adjust the number of replicas.
B
Modify the number of replicas in the YAML file and push the changes to GitHub to trigger a deployment.
C
Update the number of replicas in the YAML file and rerun the kubectl apply command.
D
Change the number of replicas in the YAML file and execute the kubectl set image command.