How to bind flannel to different iface
1 min read
This is a short post on how to install k3s cluster with flannel binded to a different interface. This is useful when you have multiple network interfaces and you want to bind flannel to a specific one.
Master node install
- Change to root user
- Declare variables (it’s more readable than using the command directly)
-
Copy the token for the worker nodes
-
Copy the kubeconfig
- Exit root user
- Create a folder called
.kube
in your home directory and create a file calledkubeconfig
inside it
-
Edit the file and paste the kubeconfig content
-
Edit this line and enter correct ip address:
Worker node Install
- Change to root user
- Declare variables (it’s more readable than using the command directly)
--flannel-iface=[interface-name]
is the flag that binds flannel to the specified interface.