K3s remove 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 -

After the installation and initial setup process (which can take a few minutes), you can access the k3s cluster using the kube config file located at the /etc/rancher/k3s/k3s.yaml.

Configuring installation

curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server" sh -s - --flannel-backend none --token 12345

Configuration can be passed to the installer via environment variables.

Other way to do this is using /etc/rancher/k3s/config.yaml file.

See more at the k3s docs.

Installing k3s without Traefik

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

This will install k3s without Traefik

Removing Traefik from the already running k3s

sudo rm -rf /var/lib/rancher/k3s/server/manifests/traefik.yaml
helm uninstall traefik traefik-crd -n kube-system
sudo systemctl restart k3s

Traefik will be uninstalled and will not be reinstalled via HelmChartConfig when k3s is restarted.

Subscribe to qdnqn

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
Join other 14 members. Unsubscribe whenever you want.