{# https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3 #} {# #} apiVersion: kubeadm.k8s.io/v1beta3 kind: JoinConfiguration discovery: bootstrapToken: apiServerEndpoint: "127.0.0.1:6443" token: "{{ kube_bootstrap_token }}" caCertHashes: - "{{ kube_bootstrap_ca_cert_hash }}" nodeRegistration: name: "{{ kubernetes_node_name }}" criSocket: "{{ kubernetes_cri_socket }}" kubeletExtraArgs: node-labels: "ansible.spreadsapce.org/inventory_hostname={{ inventory_hostname }}" {% if kubernetes_overlay_node_ip is defined %} node-ip: "{{ kubernetes_overlay_node_ip }}" {% endif %}