A Pod contains containers api and metrics. A developer needs the api container's logs, but the Pod has no default-container annotation. Which command is unambiguous?

Published
  1. kubectl logs service/checkout --selector=app=metrics
  2. kubectl get checkout -c api
  3. kubectl logs checkout -c api
  4. kubectl logs checkout -c metrics

Comments — 0