kubeasz/roles/lb/defaults/main.yml

13 lines
437 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之间
# 可以直接指定数字如ROUTER_ID: 111
# 取100~200间的随机数
#ROUTER_ID: "{{ 200 | random }}"
ROUTER_ID: 111
# haproxy负载均衡算法常见如下
# "roundrobin": 基于服务器权重的轮询
# "leastconn": 基于服务器最小连接数
# "source": 基于请求源IP地址
# "uri": 基于请求的URI
BALANCE_ALG: "roundrobin"