You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
699 B

  1. # Macvlan
  2. ## How to use it
  3. * Enable macvlan in `group_vars/k8s-cluster/k8s-cluster.yml`
  4. ```yml
  5. ...
  6. kube_network_plugin: macvlan
  7. ...
  8. ```
  9. * Adjust the `macvlan_interface` in `group_vars/k8s-cluster/k8s-net-macvlan.yml` or by host in the `host.yml` file:
  10. ```yml
  11. all:
  12. hosts:
  13. node1:
  14. ip: 10.2.2.1
  15. access_ip: 10.2.2.1
  16. ansible_host: 10.2.2.1
  17. macvlan_interface: ens5
  18. ```
  19. ## Issue encountered
  20. * Service DNS
  21. reply from unexpected source:
  22. add `kube_proxy_masquerade_all: true` in `group_vars/all/all.yml`
  23. * Disable nodelocaldns
  24. The nodelocal dns IP is not reacheable.
  25. Disable it in `sample/group_vars/k8s-cluster/k8s-cluster.yml`
  26. ```yml
  27. enable_nodelocaldns: false
  28. ```