Rancher Desktop's "it just works" experience — without the VM overhead.
Installs a single-node k3s cluster directly on your Linux host with a kubeconfig that's ready to use immediately, just like Rancher Desktop would set up, but native.
- Writes a minimal k3s config (Traefik disabled by default, world-readable kubeconfig)
- Installs k3s via the official install script (stable channel)
- Waits for the node to be
Ready - Symlinks the kubeconfig to
~/.kube/configfor the calling user - Configures kubelet graceful node shutdown (pods are terminated cleanly on reboot/poweroff)
- Detects your shell rc file and suggests the
KUBECONFIGexport if missing
sudo ./install-k3s-like-rancher-desktop.shTo keep the bundled Traefik ingress controller:
sudo ./install-k3s-like-rancher-desktop.sh --keep-traefik- Traefik is disabled by default — pass
--keep-traefikto keep it, or bring your own ingress controller. - The kubeconfig is set to mode
0644so the symlink works without root. On multi-user systems, consider restricting permissions. - Graceful node shutdown is set to 15s (5s for critical pods). Adjust
/var/lib/rancher/k3s/agent/etc/kubelet.conf.d/99-shutdown.confif needed. - Linux only. If you're on macOS/Windows, you probably want Rancher Desktop (with the VM).