2019-05-08 20:38:36 +00:00
|
|
|
---
|
2018-12-06 20:11:48 +00:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta1
|
|
|
|
kind: JoinConfiguration
|
|
|
|
discovery:
|
|
|
|
bootstrapToken:
|
2018-12-25 08:03:32 +00:00
|
|
|
{% if kubeadm_config_api_fqdn is defined %}
|
2018-12-06 20:11:48 +00:00
|
|
|
apiServerEndpoint: {{ kubeadm_config_api_fqdn }}:{{ loadbalancer_apiserver.port | default(kube_apiserver_port) }}
|
|
|
|
{% else %}
|
2019-06-28 07:37:37 +00:00
|
|
|
apiServerEndpoint: {{ kubeadm_discovery_address }}
|
2018-12-06 20:11:48 +00:00
|
|
|
{% endif %}
|
|
|
|
token: {{ kubeadm_token }}
|
2019-05-08 20:38:36 +00:00
|
|
|
caCertHashes:
|
|
|
|
- sha256:{{ kubeadm_ca_hash.stdout }}
|
2018-12-06 20:11:48 +00:00
|
|
|
timeout: {{ discovery_timeout }}
|
|
|
|
tlsBootstrapToken: {{ kubeadm_token }}
|
|
|
|
caCertPath: {{ kube_cert_dir }}/ca.crt
|
|
|
|
nodeRegistration:
|
2019-02-07 06:20:11 +00:00
|
|
|
name: {{ kube_override_hostname }}
|
2019-06-29 21:09:20 +00:00
|
|
|
criSocket: {{ cri_socket }}
|