Setup K3s on Ubuntu¶
Learn how to set up K3s on Ubuntu for lightweight Kubernetes deployment.
-
Install k3s as a service
-
Fix k3s permission denied issues
Bashmkdir ~/.kube 2> /dev/null export KUBECONFIG=~/.kube/config sudo k3s kubectl config view --raw > "$KUBECONFIG" chmod 600 "$KUBECONFIG"- More details in fixing k3s permission denied issues.
-
export
KUBECONFIG=~/.kube/configto either~/.profileor~/.bashrcto make it persist on reboot(Optional).Navigate to the last line
-
Test connection