2018-06-09 17:57:17 +08:00
|
|
|
|
# 部分calico相关配置,更全配置可以去roles/calico/templates/calico.yaml.j2自定义
|
|
|
|
|
|
2018-08-22 23:07:07 +08:00
|
|
|
|
# etcd 集群服务地址列表, 根据etcd组成员自动生成
|
|
|
|
|
TMP_ENDPOINTS: "{% for h in groups['etcd'] %}https://{{ h }}:2379,{% endfor %}"
|
|
|
|
|
ETCD_ENDPOINTS: "{{ TMP_ENDPOINTS.rstrip(',') }}"
|
|
|
|
|
|
2018-10-12 13:30:19 +08:00
|
|
|
|
# 设置 CALICO_IPV4POOL_IPIP=“off”,可以提高网络性能,条件限制详见 docs/setup/calico.md
|
2018-11-21 17:20:54 +08:00
|
|
|
|
CALICO_IPV4POOL_IPIP: "Always"
|
2018-06-09 17:57:17 +08:00
|
|
|
|
|
|
|
|
|
# 设置 Felix 日志级别
|
|
|
|
|
FELIX_LOG_LVL: "warning"
|
|
|
|
|
|
|
|
|
|
# 设置 calico-node使用的host IP,bgp邻居通过该地址建立,可手工指定也可以自动发现
|
|
|
|
|
#IP_AUTODETECTION_METHOD: "interface=eth0"
|
2019-05-31 23:07:00 +08:00
|
|
|
|
IP_AUTODETECTION_METHOD: "can-reach={{ groups['kube-master'][0] }}"
|
2018-06-09 17:57:17 +08:00
|
|
|
|
|
2020-08-27 10:11:42 +08:00
|
|
|
|
# 设置calico 网络 backend: brid, vxlan, none
|
|
|
|
|
CALICO_NETWORKING_BACKEND: "brid"
|
|
|
|
|
|
2020-05-24 17:52:18 +08:00
|
|
|
|
# 更新支持calico 版本: [v3.3.x] [v3.4.x] [v3.8.x]
|
2020-05-21 10:41:59 +08:00
|
|
|
|
calicoVer: "v3.8.8"
|
|
|
|
|
calico_ver: "{{ calicoVer }}"
|
2019-02-15 17:10:07 +08:00
|
|
|
|
|
|
|
|
|
# calico 主版本
|
|
|
|
|
calico_ver_main: "{{ calico_ver.split('.')[0] }}.{{ calico_ver.split('.')[1] }}"
|
2018-06-26 21:06:52 +08:00
|
|
|
|
|
|
|
|
|
# 离线镜像tar包
|
2019-01-02 22:29:02 +08:00
|
|
|
|
calico_offline: "calico_{{ calico_ver }}.tar"
|