2017-09-13 18:00:51 +00:00
|
|
|
apiVersion: kubeadm.k8s.io/v1alpha1
|
|
|
|
kind: NodeConfiguration
|
|
|
|
caCertPath: {{ kube_config_dir }}/ssl/ca.crt
|
|
|
|
token: {{ kubeadm_token }}
|
|
|
|
discoveryTokenAPIServers:
|
2018-08-20 13:17:48 +00:00
|
|
|
{% if groups['kube-master'] | length > 1 and kubeadm_config_api_fqdn is defined %}
|
2018-09-01 16:02:52 +00:00
|
|
|
- {{ kubeadm_config_api_fqdn }}:{{ loadbalancer_apiserver.port | default(kube_apiserver_port) }}
|
2018-08-20 13:17:48 +00:00
|
|
|
{% else %}
|
2017-09-13 18:00:51 +00:00
|
|
|
- {{ kubeadm_discovery_address | replace("https://", "")}}
|
2018-08-20 13:17:48 +00:00
|
|
|
{% endif %}
|
2018-07-20 07:15:27 +00:00
|
|
|
discoveryTokenCACertHashes:
|
2017-12-25 08:57:45 +00:00
|
|
|
- sha256:{{ kubeadm_ca_hash.stdout }}
|