You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

将node节点ip加入到当前master的免密登录列表中

ssh-copy-id 192.168.1.120
#输入192.168.1.120的root密码,或者提前在192.168.1.120中加入master的公钥

再执行如下面命令

newnode=192.168.1.120
##获取加入集群的token命令
joinconmand=$(kubeadm token create --print-join-command)
##加入集群
ssh ${newnode} "$joinconmand"
  • No labels