Skip to main content
Useful references:
1
Install k3s as a service
2
curl -sfL https://get.k3s.io | sh -
3
Fix k3s permission denied issues
4
mkdir ~/.kube 2> /dev/null
export KUBECONFIG=~/.kube/config
sudo k3s kubectl config view --raw > "$KUBECONFIG"
chmod 600 "$KUBECONFIG"
5
Persist KUBECONFIG across reboots (Optional)
6
Export KUBECONFIG=~/.kube/config to ~/.bashrc to make it persist on reboot.
7
nano ~/.bashrc
8
Add the following line at the end of the file:
9
export KUBECONFIG=~/.kube/config
10
Then reload the shell:
11
source ~/.bashrc
12
Test the connection
13
kubectl get all

Build docs developers (and LLMs) love