kubernetes.adm.api_server_lb role – Setup a load balancer for the API server using keepalived and haproxy.

Note

This role is part of the kubernetes.adm collection (version 1.0.0).

To install it use: ansible-galaxy collection install kubernetes.adm.

To use it in a playbook, specify: kubernetes.adm.api_server_lb.

Entry point main – Setup a load balancer for the API server using keepalived and haproxy.

Synopsis

  • Based on Software load balancing.

  • Keepalived requires that all nodes are in the same subnet(broadcast domain).

  • When using a domain name as a cluster endpoint(control_plane_endpoint), it must resolve to keepalived_vip.

Parameters

Parameter

Comments

keepalived_interface

string / required

The network interface used by keepalived VRRP protocol. For exmaple eth0.

keepalived_master

string

The server with the MASTER state in keepalived.conf. Must be an inventory host.

Default: "First node in C(control_plane_hostgroup)"

keepalived_vip

string / required

The keepalived VIP. The cluster endpoint control_plane_endpoint resolves to the VIP.

When using an IP as the cluster endpoint, it should equal the VIP.