Created
June 19, 2021 23:31
-
-
Save kylos101/c3d5053adfd04be3d669097f04e2c80a to your computer and use it in GitHub Desktop.
k3s troubleshooting (run from a node if you're having trouble)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspect k3s on server and agents configuration | |
k3s check-config | |
# inspect k3s server to see how it's doing | |
sudo systemctl status k3s -l | |
# inspect k3s agent to see how it's doing | |
sudo systemctl status k3s-agent -l | |
# Run kubectl commands your server and agents your host os | |
sudo /usr/local/bin/kubectl get nodes | |
sudo /usr/local/bin/kubectl get pods -A | |
# Get detailed logs | |
sudo journalctl -xe | |
# Check for failed services | |
systemctl --failed | |
# Debug DNS | |
# https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues | |
# https://rancher.com/docs/rancher/v2.x/en/troubleshooting/dns/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment