kubeasz/roles/ex-lb/defaults/main.yml

24 lines
825 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 区分多个instance的VRRP组播同网段不能重复取值在0-255之间
# 因项目已设置vrrp报文单播模式所以这个ROUTER_ID 即便同网段里面有重复也没关系
ROUTER_ID: 222
# haproxy负载均衡算法常见如下
# "roundrobin": 基于服务器权重的轮询
# "leastconn": 基于服务器最小连接数
# "source": 基于请求源IP地址
# "uri": 基于请求的URI
BALANCE_ALG: "roundrobin"
# 启用 ingress NodePort服务的负载均衡 (yes/no)
INGRESS_NODEPORT_LB: "no"
# ingress NodePort 的端口号
INGRESS_NODEPORT_LB_PORT: 23456
# 启用 ingress tls NodePort服务的负载均衡 (yes/no)
INGRESS_TLS_NODEPORT_LB: "no"
# ingress tls NodePort 的端口号
INGRESS_TLS_NODEPORT_LB_PORT: 23457
# 离线安装 haproxy+keepalived (offline|online)
INSTALL_SOURCE: "online"