2019-03-30 11:57:52 +08:00
|
|
|
|
# CA 证书相关参数
|
|
|
|
|
CA_EXPIRY: "876000h"
|
|
|
|
|
CERT_EXPIRY: "438000h"
|
|
|
|
|
|
2019-05-27 20:02:02 +08:00
|
|
|
|
# apiserver 默认第一个master节点
|
|
|
|
|
KUBE_APISERVER: "https://{{ groups['kube-master'][0] }}:6443"
|
2019-03-30 11:57:52 +08:00
|
|
|
|
|
2019-05-27 20:02:02 +08:00
|
|
|
|
# kubeconfig 配置参数,注意权限根据‘CLUSTER_NAME’设置:
|
2019-05-01 17:20:20 +08:00
|
|
|
|
# 'admin' 表示创建集群管理员(所有)权限的 kubeconfig
|
|
|
|
|
# 'read' 表示创建只读权限的 kubeconfig
|
2019-05-27 20:02:02 +08:00
|
|
|
|
CLUSTER_NAME: "cluster1"
|
|
|
|
|
USER_NAME: "admin"
|
|
|
|
|
CONTEXT_NAME: "context-{{ CLUSTER_NAME }}-{{ USER_NAME }}"
|