Skip to content

Instantly share code, notes, and snippets.

@MudraR
Created January 25, 2026 11:26
Show Gist options
  • Select an option

  • Save MudraR/d65964f39a5be6502fd0e8c7d077a79c to your computer and use it in GitHub Desktop.

Select an option

Save MudraR/d65964f39a5be6502fd0e8c7d077a79c to your computer and use it in GitHub Desktop.
Install K3s on WSL (Windows 10)
# on WSL, run the following sh.
# https://github.com/k3s-io/k3s?tab=readme-ov-file#quick-start---install-script
curl -sfL https://get.k3s.io | sh -
# https://devops.stackexchange.com/questions/16043/error-error-loading-config-file-etc-rancher-k3s-k3s-yaml-open-etc-rancher
mkdir ~/.kube 2> /dev/null
sudo k3s kubectl config view --raw > "$KUBECONFIG"
chmod 600 "$KUBECONFIG"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment