123456789101112131415161718192021222324252627 |
- ---
- - name: Disable swap (if not already disabled)
- command: /usr/sbin/swapoff -a
- changed_when: true
- tags: init
- - name: Execute kubeadm join command
- shell: >
- kubeadm join --token={{ hostvars['K8S_TOKEN_HOLDER']['token'] }}
- --discovery-token-ca-cert-hash sha256:{{ hostvars['K8S_TOKEN_HOLDER']['hash'] }}
- {{ hostvars['K8S_TOKEN_HOLDER']['ip'] }}:{{ apiserver_bind_port }}
- when: not single_node
- tags: init
|