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 |
---|---|
The network interface used by keepalived VRRP protocol. For exmaple eth0. |
|
The server with the MASTER state in Default: |
|
The keepalived VIP. The cluster endpoint When using an IP as the cluster endpoint, it should equal the VIP. |