docs: add contiv vpp
[vpp.git] / docs / usecases / contiv / CUSTOM_MGMT_NETWORK.md
1 ### Setting Up a Custom Management Network on Multi-Homed Nodes
2
3 If the interface you use for Kubernetes management traffic (for example, the
4 IP address used for `kubeadm join`) is not the one that contains the default
5 route out of the host, then you need to specify the management node IP address in
6 the Kubelet config file. Add the following line to:
7 (`/etc/systemd/system/kubelet.service.d/10-kubeadm.conf`):
8 ```
9 Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false --node-ip=<node-management-ip-address>"
10 ```
11 #### Example
12 Consider a 2 node deployment where each node is connected to 2 networks -
13 `10.0.2.0/24` and `192.168.56.0/24`, and the default route on each node points
14 to the interface connected to the `10.0.2.0/24` subnet. We want to use subnet
15 `192.168.56.0/24` for Kubernetes management traffic. Assume the addresses of
16 nodes connected to `192.168.56.0/24` are `192.168.56.105` and `192.168.56.106`.
17
18 On the `192.168.56.105` node you add the following line to `10-kubeadm.conf`:
19 ```
20 Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false --node-ip=192.168.56.105"
21 ```
22 On the `192.168.56.106` node you add the following line to `10-kubeadm.conf`:
23 ```
24 Environment="KUBELET_EXTRA_ARGS=--fail-swap-on=false --node-ip=192.168.56.106"
25 ```
26