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.

52 lines
1.4 KiB

  1. # kube-vip
  2. kube-vip provides Kubernetes clusters with a virtual IP and load balancer for both the control plane (for building a highly-available cluster) and Kubernetes Services of type LoadBalancer without relying on any external hardware or software.
  3. ## Install
  4. You have to explicitly enable the kube-vip extension:
  5. ```yaml
  6. kube_vip_enabled: true
  7. ```
  8. You also need to enable
  9. [kube-vip as HA, Load Balancer, or both](https://kube-vip.chipzoller.dev/docs/installation/static/#kube-vip-as-ha-load-balancer-or-both):
  10. ```yaml
  11. # HA for control-plane, requires a VIP
  12. kube_vip_controlplane_enabled: true
  13. kube_vip_address: 10.42.42.42
  14. loadbalancer_apiserver:
  15. address: "{{ kube_vip_address }}"
  16. port: 6443
  17. # kube_vip_interface: ens160
  18. # LoadBalancer for services
  19. kube_vip_services_enabled: false
  20. # kube_vip_services_interface: ens320
  21. ```
  22. > Note: When using `kube-vip` as LoadBalancer for services,
  23. [additionnal manual steps](https://kube-vip.chipzoller.dev/docs/usage/cloud-provider/)
  24. are needed.
  25. If using [ARP mode](https://kube-vip.chipzoller.dev/docs/installation/static/#arp) :
  26. ```yaml
  27. kube_vip_arp_enabled: true
  28. ```
  29. If using [BGP mode](https://kube-vip.chipzoller.dev/docs/installation/static/#bgp) :
  30. ```yaml
  31. kube_vip_bgp_enabled: true
  32. kube_vip_local_as: 65000
  33. kube_vip_bgp_routerid: 192.168.0.2
  34. kube_vip_bgppeers:
  35. - 192.168.0.10:65000::false
  36. - 192.168.0.11:65000::false
  37. # kube_vip_bgp_peeraddress:
  38. # kube_vip_bgp_peerpass:
  39. # kube_vip_bgp_peeras:
  40. ```