Skip to content

Instantly share code, notes, and snippets.

@nanmu42
Last active February 1, 2020 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanmu42/a5604d1ecfa2a1bc80567e2a95e54859 to your computer and use it in GitHub Desktop.
Save nanmu42/a5604d1ecfa2a1bc80567e2a95e54859 to your computer and use it in GitHub Desktop.
K3S Jumpstart

Run /usr/local/bin/k3s-uninstall.sh

set -e
# make config readable by non-root user
# https://github.com/rancher/k3s/issues/389#issuecomment-503482103
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s - server --no-deploy traefik
# set kubeconfig env
echo 'export KUBECONFIG="~/.kube/config:/etc/rancher/k3s/k3s.yaml"' >> ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment