summaryrefslogtreecommitdiff
path: root/roles/kubernetes/kubeadm/worker/templates/kubeadm.config.j2
blob: 302e3e76b41112b0bb3e041e51aba017de0e7033 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{# 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 %}