2019-05-08 20:38:36 +00:00
|
|
|
---
|
2020-05-08 07:45:43 +00:00
|
|
|
apiVersion: kubeadm.k8s.io/v1beta2
|
2018-12-06 20:11:48 +00:00
|
|
|
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-07-09 12:41:59 +00:00
|
|
|
{% if kubeadm_ca_hash.stdout is defined %}
|
2019-05-08 20:38:36 +00:00
|
|
|
caCertHashes:
|
|
|
|
- sha256:{{ kubeadm_ca_hash.stdout }}
|
2019-07-09 12:41:59 +00:00
|
|
|
{% else %}
|
|
|
|
unsafeSkipCAVerification: true
|
|
|
|
{% endif %}
|
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 }}
|
2019-08-08 14:37:22 +00:00
|
|
|
{% if 'calico-rr' in group_names and 'kube-node' not in group_names %}
|
|
|
|
taints:
|
|
|
|
- effect: NoSchedule
|
|
|
|
key: node-role.kubernetes.io/calico-rr
|
|
|
|
{% endif %}
|