Skip to content

Instantly share code, notes, and snippets.

@helloimalemur
Last active August 8, 2024 18:39
Show Gist options
  • Save helloimalemur/ed603d52c2460694a9826fc1b1228c9f to your computer and use it in GitHub Desktop.
Save helloimalemur/ed603d52c2460694a9826fc1b1228c9f to your computer and use it in GitHub Desktop.
K3s without traefik

K3s without traefik

To install the K3s, on the new VM instance, you can simply run the script in the terminal:

curl -sfL https://get.k3s.io | sh -

To install k3s without traefik:

curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable=traefik" sh -s - 

Removing Traefik service from the already running k3s (sufficient in most situations)

kubectl delete service/traefik -n kube-system

To uninstall K3s from a server node, run:

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

Uninstalling Agents

To uninstall K3s from an agent node, run:

/usr/local/bin/k3s-agent-uninstall.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment