A container repeatedly exits and restarts. Its current log is nearly empty, but the previous instance emitted the failure. Which command retrieves that instance's log?

Published
  1. kubectl logs api -c server --tail=0
  2. kubectl describe namespace default
  3. kubectl logs api -c server --previous
  4. kubectl get service api -o yaml

Comments — 0