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

CKA study material · question 478 of 1000

Which command produces a valid manifest skeleton without creating anything?

  1. kubectl diff -f manifest.yaml
  2. kubectl run <name> --image=<image> --dry-run=client -o yaml
  3. kubectl explain pod --recursive
  4. kubectl create -f - --validate
Show the answer

Answer: B. kubectl run <name> --image=<image> --dry-run=client -o yaml

--dry-run=client with -o yaml generates the manifest without contacting the cluster to create the object.

Source: kubectl Quick Reference (Kubernetes) — Interacting with running Pods

Challenge yourself on this topic → Study as cards