Troubleshooting Tips Per Topic
Troubleshooting Tips Per Topic
Troubleshooting Tips Per Topic
CKA Tips
- In this section we’ll provide some tips on how troubleshoot issues based on CKA topics.
General Tips
- Use
tail
andgrep
to follow the logs real time. - Always make a copy of the any files before modifying.
Apiserver Crash/Misconfiguration
File | Location |
---|---|
Configuration | /etc/kubernetes/manifests/kube-apiserver.yaml |
Logs | /var/log/pods |
/var/log/containers | |
crictl ps and crictl logs <containerid> | |
docker ps and docker ps <containerid> | |
Kubelet Config | /var/lib/kubelet/ |
Kubelet Logs | /var/log/syslog or journalctl |
systemctl commands
Command | Description |
---|---|
systemctl cat <service_name> | To check the service configuration |
This post is licensed under CC BY 4.0 by the author.