2017-11-11 19:14:21 +08:00
|
|
|
{
|
|
|
|
"CN": "kubernetes",
|
|
|
|
"hosts": [
|
|
|
|
"127.0.0.1",
|
2019-05-30 21:37:01 +08:00
|
|
|
{% if groups['ex-lb']|length > 0 %}
|
|
|
|
"{{ hostvars[groups['ex-lb'][0]]['EX_APISERVER_VIP'] }}",
|
|
|
|
{% endif %}
|
2018-06-09 22:19:20 +08:00
|
|
|
"{{ inventory_hostname }}",
|
2017-11-11 19:14:21 +08:00
|
|
|
"{{ CLUSTER_KUBERNETES_SVC_IP }}",
|
2019-05-30 21:37:01 +08:00
|
|
|
{% for host in MASTER_CERT_HOSTS %}
|
|
|
|
"{{ host }}",
|
2018-11-07 10:23:18 +08:00
|
|
|
{% endfor %}
|
2017-11-11 19:14:21 +08:00
|
|
|
"kubernetes",
|
|
|
|
"kubernetes.default",
|
|
|
|
"kubernetes.default.svc",
|
|
|
|
"kubernetes.default.svc.cluster",
|
|
|
|
"kubernetes.default.svc.cluster.local"
|
|
|
|
],
|
|
|
|
"key": {
|
|
|
|
"algo": "rsa",
|
|
|
|
"size": 2048
|
|
|
|
},
|
|
|
|
"names": [
|
|
|
|
{
|
|
|
|
"C": "CN",
|
|
|
|
"ST": "HangZhou",
|
|
|
|
"L": "XS",
|
|
|
|
"O": "k8s",
|
|
|
|
"OU": "System"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|