Skip to content

Instantly share code, notes, and snippets.

@pojntfx
Last active March 5, 2021 22:04
Show Gist options
  • Save pojntfx/a755f068207a843132e4271097dae8ba to your computer and use it in GitHub Desktop.
Save pojntfx/a755f068207a843132e4271097dae8ba to your computer and use it in GitHub Desktop.
Installation of k3s on a fixed network interface using Debian 10
# On the first host
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --node-ip=192.168.100.1 --flannel-iface=edge0" sh -
cat /var/lib/rancher/k3s/server/node-token # Find the token here
# On the second host
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="agent --token=K108fda6a9dcd1995b3b93d53468d918df95ef5cc0c763846240ebf3a6baa8c8e62::server:7ccc91c12c8ae498b200a390e02533f6 --node-ip=192.168.100.2 --server=https://192.168.100.1:6443 --flannel-iface=edge0" sh -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment