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-11-07 10:23:18 +08:00
|
|
|
|
# k8s 集群 master 节点证书配置,可以添加多个ip和域名(比如增加公网ip和域名)
|
|
|
|
|
MASTER_CERT_HOSTS:
|
|
|
|
|
- "10.1.1.1"
|
|
|
|
|
- "k8s.test.io"
|
|
|
|
|
#- "61.182.11.41"
|
|
|
|
|
#- "www.test.com"
|
2019-03-14 14:00:28 +08:00
|
|
|
|
|
|
|
|
|
# apiserver 基础认证(用户名/密码)配置
|
|
|
|
|
# 在 master 节点文件‘/etc/kubernetes/ssl/basic-auth.csv’ 可以查看密码
|
2019-03-14 23:51:04 +08:00
|
|
|
|
BASIC_AUTH_ENABLE: "no" # 是否启用 yes/no
|
2019-03-14 14:00:28 +08:00
|
|
|
|
BASIC_AUTH_USER: "admin"
|
2019-03-14 23:51:04 +08:00
|
|
|
|
BASIC_AUTH_PASS: "_pwd_" # BASIC_AUTH_PASS 初次运行时会被随机密码覆盖
|