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

CKA study material · question 369 of 1000

kubectl exec fails on a distroless image with no shell. What is the alternative?

  1. kubectl attach with --stdin
  2. kubectl cp with a shell binary
  3. kubectl debug, adding an ephemeral container
  4. kubectl port-forward to the container
Show the answer

Answer: C. kubectl debug, adding an ephemeral container

Ephemeral containers added with kubectl debug are the route in when the image carries no debugging tools.

Source: Debug Running Pods (Kubernetes) — Debugging with an ephemeral debug container

Challenge yourself on this topic → Study as cards