Kubernetes

How to confirm a container is running after running the command kubectl run web --image nginxinc/nginx-unprivileged

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  • When you run kubectl describe pods it will tell whether the container is running: Status: Running
  • Run a command inside the container: kubectl exec web -- ls