The kubelet in mock test 3 for the CKS course does not work. This restricts me from creating resources and hence, completing the lab. I have my exam in a few days, not sure how to get over this.
Can you be more specific? Looks fine to me.
If you have your exam in a few days, you should be doing killer.sh now.
Hi @Shrey-Raut ,
You can check this useful page also. Writtten by Alistair.
# How to Diagnose a Crashed API Server
The API server pod won't come back up - HELP :scream: :scream: :scream:
Perhaps you've made a manifest edit, or perhaps some question has put you into a context where the API server is already broken. You're using `docker ps` or `crictl ps` and see the API server flash up briefly then go away. The container doesn't last long enough for you to grab an ID to pull logs from. Or maybe it never appears in the `ps` output.
Note that these techniques can be used for the other static pods like `etcd` by looking for `etcd` instead of `apiserver` in the commands below.
Steps to take
1. Restart `kubelet` so you don't have to wait too long in the following steps</br></br>
```
systemctl restart kubelet
```
1. Determine if the kubelet can even start the API server</br></br>
If there is a syntax error in the YAML manifest, then kubelet will not be able to parse it and will eventually complain. Do the following and watch the output for up to 60 seconds. Note that if you have errors in your pod manifest, kubelet will report them exactly the same way using the [same kind of error messages](./yaml-faq.md#dealing-with-errors) that kubectl does!
```
journalctl -fu kubelet | grep apiserver
This file has been truncated. show original
Regards,