Skip to content

Instantly share code, notes, and snippets.

@kylos101
Created June 19, 2021 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylos101/c3d5053adfd04be3d669097f04e2c80a to your computer and use it in GitHub Desktop.
Save kylos101/c3d5053adfd04be3d669097f04e2c80a to your computer and use it in GitHub Desktop.
k3s troubleshooting (run from a node if you're having trouble)
# 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