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.

48 lines
735 B

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