Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to join new node to exist cluster? #75

Open
codyzhang opened this issue Dec 20, 2019 · 0 comments
Open

How to join new node to exist cluster? #75

codyzhang opened this issue Dec 20, 2019 · 0 comments

Comments

@codyzhang
Copy link

codyzhang commented Dec 20, 2019

#vi host.ini

[master]
192.168.0.38

[node]
192.168.0.4
192.168.0.20 (new node)
192.168.0.17

[kube-cluster:children]
master
node

kubeadm-ansible]# ansible-playbook site.yaml

TASK [kubernetes/node : Join to Kubernetes cluster] ***********************************************************************************************************************
Friday 20 December 2019 04:56:28 +0200 (0:00:00.842) 0:01:45.157 *******
fatal: [192.168.0.20]: FAILED! => {"changed": true, "cmd": "kubeadm join --token b0f7b8.8d1767876297d85c --discovery-token-unsafe-skip-ca-verification 192.168.0.38:6443\n", "delta": "0:05:00.4}

.......
........
PLAY RECAP ****************************************************************************************************************************************************************
192.168.0.17 : ok=20 changed=3 unreachable=0 failed=0 skipped=28 rescued=0 ignored=0
192.168.0.20 : ok=21 changed=14 unreachable=0 failed=1 skipped=27 rescued=0 ignored=0
1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant