Kube-api server stopped again

disha rajpal:
Hi, Please help me with this question. I tried to solve it but no go.

The kube-api server stopped again! Check it out. Inspect the kube-api server logs and identify the root cause and fix the issue.
Run docker ps -a command to identify the kube-api server container. Run docker logs container-id command to view the logs.

Ashok Kumar:
Hey Disha

Check for api-server exited container using

docker ps --filter "status=exited"

then look api-server container id and use

docker logs <container_id>

Read the all the log lines one by one somewhere you would encounter a message as “certificate is invalid” when connecting to etcd
This should give you a hint where you should be looking next:slightly_smiling_face:

disha rajpal:
Thanks