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

CKA study material · question 969 of 1000

A deployment script runs kubectl diff before applying. Which exit code means changes are pending?

  1. 0
  2. 2
  3. 255
  4. 1
Show the answer

Answer: D. 1

kubectl diff exits 0 when nothing differs and 1 when something does; anything greater means kubectl or the diff tool itself failed.

Source: kubectl diff (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards