kubeasz/roles/kube-master/templates/kubernetes-csr.json.j2

35 lines
681 B
Plaintext
Raw Normal View History

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 %}
2020-12-30 11:25:54 +08:00
{% for host in groups['kube-master'] %}
"{{ host }}",
{% endfor %}
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 }}",
{% 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"
}
]
}