Study. uk . com
  1. Home
  2. All questions
  3. Question 482

CKA study material · question 482 of 1000

Which command compares a manifest against the live cluster before applying it?

  1. kubectl explain
  2. kubectl apply --dry-run=server
  3. kubectl get -o yaml
  4. kubectl diff
Show the answer

Answer: D. kubectl diff

kubectl diff compares the current cluster state against the state the manifest would produce.

Source: kubectl Quick Reference (Kubernetes) — Viewing and finding resources

Challenge yourself on this topic → Study as cards