mirror of https://github.com/easzlab/kubeasz.git
33 lines
642 B
Django/Jinja
33 lines
642 B
Django/Jinja
{
|
|
"CN": "kubernetes",
|
|
"hosts": [
|
|
"127.0.0.1",
|
|
{% if groups['ex-lb']|length > 0 %}
|
|
"{{ hostvars[groups['ex-lb'][0]]['EX_APISERVER_VIP'] }}",
|
|
{% endif %}
|
|
"{{ inventory_hostname }}",
|
|
"{{ CLUSTER_KUBERNETES_SVC_IP }}",
|
|
{% for host in MASTER_CERT_HOSTS %}
|
|
"{{ host }}",
|
|
{% endfor %}
|
|
"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"
|
|
}
|
|
]
|
|
}
|