2d0de074b4130ff10216aef4be723e9f7449267f
[it/test.git] / XTesting / kubespray / docs / macvlan.md
1 # Macvlan
2
3 ## How to use it
4
5 * Enable macvlan in `group_vars/k8s_cluster/k8s_cluster.yml`
6
7 ```yml
8 ...
9 kube_network_plugin: macvlan
10 ...
11 ```
12
13 * Adjust the `macvlan_interface` in `group_vars/k8s_cluster/k8s-net-macvlan.yml` or by host in the `host.yml` file:
14
15 ```yml
16 all:
17   hosts:
18     node1:
19       ip: 10.2.2.1
20       access_ip: 10.2.2.1
21       ansible_host: 10.2.2.1
22       macvlan_interface: ens5
23 ```
24
25 ## Issue encountered
26
27 * Service DNS
28
29 reply from unexpected source:
30
31 add `kube_proxy_masquerade_all: true` in `group_vars/all/all.yml`
32
33 * Disable nodelocaldns
34
35 The nodelocal dns IP is not reacheable.
36
37 Disable it in `sample/group_vars/k8s_cluster/k8s_cluster.yml`
38
39 ```yml
40 enable_nodelocaldns: false
41 ```