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