2019-05-29 20:45:25 +08:00
|
|
|
|
# dns 自动安装,'dns_backend'可选"coredns"和“kubedns”
|
2018-06-17 23:19:04 +08:00
|
|
|
|
dns_install: "yes"
|
|
|
|
|
dns_backend: "coredns"
|
2019-08-05 20:57:59 +08:00
|
|
|
|
# 设置 dns svc ip (这里选用 SERVICE_CIDR 中第2个IP)
|
2019-08-07 14:52:25 +08:00
|
|
|
|
CLUSTER_DNS_SVC_IP: "{{ SERVICE_CIDR | ipaddr('net') | ipaddr(2) | ipaddr('address') }}"
|
2019-05-02 12:10:05 +08:00
|
|
|
|
kubednsVer: "1.14.13"
|
2019-10-07 23:08:24 +08:00
|
|
|
|
corednsVer: "1.6.2"
|
2019-05-02 12:10:05 +08:00
|
|
|
|
kubedns_offline: "kubedns_{{ kubednsVer }}.tar"
|
|
|
|
|
coredns_offline: "coredns_{{ corednsVer }}.tar"
|
2018-07-23 22:00:06 +08:00
|
|
|
|
dns_offline: "{%- if dns_backend == 'coredns' -%} \
|
|
|
|
|
{{ coredns_offline }} \
|
|
|
|
|
{%- else -%} \
|
|
|
|
|
{{ kubedns_offline }} \
|
|
|
|
|
{%- endif -%}"
|
2018-06-17 23:19:04 +08:00
|
|
|
|
|
|
|
|
|
# metric server 自动安装
|
|
|
|
|
metricsserver_install: "yes"
|
2019-10-07 23:08:24 +08:00
|
|
|
|
metricsVer: "v0.3.4"
|
2019-05-02 12:10:05 +08:00
|
|
|
|
metricsserver_offline: "metrics-server_{{ metricsVer }}.tar"
|
2018-06-17 23:19:04 +08:00
|
|
|
|
|
|
|
|
|
# dashboard 自动安装
|
2019-06-13 17:16:52 +08:00
|
|
|
|
# 现阶段 dashboard 获取metrics仍旧依赖于heapster,因此需连带安装heapster
|
2018-06-17 23:19:04 +08:00
|
|
|
|
dashboard_install: "yes"
|
2019-05-02 12:10:05 +08:00
|
|
|
|
dashboardVer: "v1.10.1"
|
|
|
|
|
dashboard_offline: "dashboard_{{ dashboardVer }}.tar"
|
2019-06-13 17:16:52 +08:00
|
|
|
|
heapsterVer: "v1.5.4"
|
|
|
|
|
heapster_offline: "heapster_{{ heapsterVer }}.tar"
|
2018-06-17 23:19:04 +08:00
|
|
|
|
|
2018-12-21 22:35:15 +08:00
|
|
|
|
# ingress 自动安装,可选 "traefik" 和 "nginx-ingress"
|
2019-06-13 17:16:52 +08:00
|
|
|
|
ingress_install: "yes"
|
2018-06-28 10:52:20 +08:00
|
|
|
|
ingress_backend: "traefik"
|
2019-06-13 17:16:52 +08:00
|
|
|
|
traefikVer: "v1.7.12"
|
2019-05-02 12:10:05 +08:00
|
|
|
|
nginxingVer: "0.21.0"
|
|
|
|
|
traefik_offline: "traefik_{{ traefikVer }}.tar"
|
|
|
|
|
nginx_ingress_offline: "nginx_ingress_{{ nginxingVer }}.tar"
|
2018-06-17 23:19:04 +08:00
|
|
|
|
|
2018-10-28 21:20:26 +08:00
|
|
|
|
# metallb 自动安装
|
|
|
|
|
metallb_install: "no"
|
2019-05-02 12:10:05 +08:00
|
|
|
|
metallbVer: "v0.7.3"
|
2018-10-28 21:20:26 +08:00
|
|
|
|
# 模式选择: 二层 "layer2" 或者三层 "bgp"
|
|
|
|
|
metallb_protocol: "layer2"
|
2019-05-02 12:10:05 +08:00
|
|
|
|
metallb_offline: "metallb_{{ metallbVer }}.tar"
|
2018-10-28 21:20:26 +08:00
|
|
|
|
metallb_vip_pool: "192.168.1.240/29"
|
2018-12-21 22:35:15 +08:00
|
|
|
|
|
|
|
|
|
# efk 自动安装
|
|
|
|
|
#efk_install: "no"
|
|
|
|
|
|
|
|
|
|
# prometheus 自动安装
|
|
|
|
|
#prometheus_install: "no"
|
|
|
|
|
|