lingyun Cauchy 我在脚本里加了set -x 单独执行脚本,执行成功了,当我再次执行./kk add nodes -f config-sample.yaml 命令时,还是卡在了原来的位置。。
Cauchy https://github.com/kubesphere/kubekey/blob/fb0ad3ab9c613e8be318bd521c1d0ef2f48e1028/pkg/bootstrap/configuration/init_script.go#L119 我猜有可能是这条命令卡主了,可以自己修改下这个脚本,然后自行 build 一下 kk 执行试试,build方法可参考: https://github.com/kubesphere/kubekey/blob/master/docs/developer-guide.md#build-binary-from-source-code
lingyun lingyun ./kk version 找到了 ,谢谢 version.BuildInfo{Version:“latest+unreleased”, GitCommit:“443bbe8ac8ca1566b845ee24642fc16a6740fa4c”, GitTreeState:“dirty”, GoVersion:“go1.14.9”}
lingyun lingyun 已经解决了,是因为新增的节点使用的网卡不对,通过该命令来修改和绑定的网卡: kubectl set env daemonset.apps/calico-node -n calico-system IP_AUTODETECTION_METHOD=interface=ens.*