注意:不能修改hostname
curl -sSL http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/installer/kubemgr-1.6.1.sh >kubemgr-aliyun-1.6.1.sh
chmod +x kubemgr-aliyun-1.6.1.sh

master:
export ACCESS_KEY_ID=
export ACCESS_KEY_SECRET=
./kubemgr-aliyun-1.6.1.sh -s nice --node-type master --key-id ${ACCESS_KEY_ID} --key-secret ${ACCESS_KEY_SECRET}

node:
export ACCESS_KEY_ID=
export ACCESS_KEY_SECRET=


./kubemgr-aliyun-1.6.1.sh -s nice --node-type node --key-id ${ACCESS_KEY_ID} --key-secret ${ACCESS_KEY_SECRET} --token 3dc851.9cc9f65cf3191c47 --endpoint kubernetes.default.svc:6443
token 使用master最后打印出的(或者master执行kubeadm token list查看),endpoint使用master的ip


kubeadm join --skip-preflight-checks --token 3dc851.9cc9f65cf3191c47 kubernetes.default.svc:6443

 

卸载:
kubectl delete -f http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/conf/ingress-controller-summary.yml

curl -sSL http://aliacs-k8s.oss-cn-hangzhou.aliyuncs.com/installer/kubemgr-1.6.1.sh \ | bash -s nice --node-type down


环境变量
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /etc/profile
source /etc/profile


Created API client, waiting for the control plane to become ready
unable to connect to Rkt api service: rkt: cannot tcp Dial rkt api servic
修改了实例名字导致的


如果遇到不是同一个node上的pod与pod内无法访问的问题,设置安全组
cni网卡ping不通,注意不能设置外网IP

相关文章:

  • 2022-01-18
  • 2022-02-25
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2021-10-10
  • 2021-09-09
  • 2021-11-17
  • 2021-11-19
  • 2021-07-01
相关资源
相似解决方案