2017-09-14 02:00:51 +08:00
|
|
|
apiVersion: kubeadm.k8s.io/v1alpha1
|
|
|
|
kind: NodeConfiguration
|
2018-12-07 04:11:48 +08:00
|
|
|
caCertPath: {{ kube_cert_dir }}/ca.crt
|
2017-09-14 02:00:51 +08:00
|
|
|
token: {{ kubeadm_token }}
|
|
|
|
discoveryTokenAPIServers:
|
2018-12-25 16:03:32 +08:00
|
|
|
{% if kubeadm_config_api_fqdn is defined %}
|
2018-09-02 00:02:52 +08:00
|
|
|
- {{ kubeadm_config_api_fqdn }}:{{ loadbalancer_apiserver.port | default(kube_apiserver_port) }}
|
2018-08-20 21:17:48 +08:00
|
|
|
{% else %}
|
2019-06-28 15:37:37 +08:00
|
|
|
- {{ kubeadm_discovery_address }}
|
2018-08-20 21:17:48 +08:00
|
|
|
{% endif %}
|
2018-07-20 15:15:27 +08:00
|
|
|
discoveryTokenCACertHashes:
|
2017-12-25 16:57:45 +08:00
|
|
|
- sha256:{{ kubeadm_ca_hash.stdout }}
|