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