Skip to content

Instantly share code, notes, and snippets.

@kylos101
kylos101 / k3s-troubleshooting.sh
Created Jun 19, 2021
k3s troubleshooting (run from a node if you're having trouble)
View k3s-troubleshooting.sh
# 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
View script.sh
# Assumes you have a remote defined as upstream like this...
# git remote add upstream https://github.com/org/source-of-your-fork.git
# Update your fork...
git checkout master && git fetch upstream && git rebase upstream/master && git push origin master --force
@kylos101
kylos101 / readme.md
Last active Sep 27, 2019
Use a private Docker Hub repo with OpenFaaS
View readme.md