Kubernetes

What the following output of kubectl get rs means?

NAME DESIRED CURRENT READY AGE web 2 2 0 2m23s

Difficulty: unrated

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

Answer

The replicaset web has 2 replicas. It seems that the containers inside the Pod(s) are not yet running since the value of READY is 0. It might be normal since it takes time for some containers to start running and it might be due to an error. Running kubectl describe po POD_NAME or kubectl logs POD_NAME can give us more information.