<p>I have couple of nodes I need to deploy Kubernetes on them. So they all have couple of NICs. Let's say ens0, ens1, ens2 are the network interfaces and ens0 is the default, but I was requested to use ens1. When I deploy kubernetes it's using the default interface. How do I change it when I initialize the cluster?</p>

<p>You can use <code>--apiserver-advertise-address string</code> option when initializing kubeadm.</p>
<p>From <a href="https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/" rel="nofollow noreferrer">Kubernetes documentation</a>: The string is the IP address the API Server will advertise it's listening on. If not set the default network interface will be used.
So something like this should work:</p>
<pre><code>kubeadm init --apiserver-advertise-address=10.x.x.x
</code></pre>
<p>Where 10.x.x.x is the IP associated with your desired interface.</p>
