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

CKA study material · question 977 of 1000

How is every container of a DaemonSet updated to one image in a single kubectl set image command?

  1. By omitting the container name entirely
  2. By passing --all
  3. By listing each container name in turn
  4. By using an asterisk in place of the container name
Show the answer

Answer: D. By using an asterisk in place of the container name

kubectl set image normally takes container=image pairs; an asterisk as the container name applies the image to every container in the object.

Source: kubectl set image (Kubernetes) — Examples

Challenge yourself on this topic → Study as cards