v2-d.jpg
现有版本为1.20.8,增加一个N1节点到集群中去

swap

swapoff a

科学上网

export  http_proxy='http://172.16.0.101:8118'
export https_proxy='http://172.16.0.101:8118'
export   ftp_proxy='http://172.16.0.101:8118'
export  no_proxy='172.16.*.*,127.0.*.*,192.168.*.*,10.*.*.*,*.local'
curl -L https://www.google.com/ 

仓库

apt-get update
apt-get install -y apt-transport-https ca-certificates curl
curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
apt-get update

可用版本

root@n1:~# apt-cache madison  kubeadm kubelet kubectl |grep 1.20.8
   kubeadm |  1.20.8-00 | https://apt.kubernetes.io kubernetes-xenial/main arm64 Packages
   kubelet |  1.20.8-00 | https://apt.kubernetes.io kubernetes-xenial/main arm64 Packages
   kubectl |  1.20.8-00 | https://apt.kubernetes.io kubernetes-xenial/main arm64 Packages

install

apt install -y kubeadm=1.20.8-00 kubelet=1.20.8-00 kubectl=1.20.8-00

on master:

[root@master ~]# kubeadm token create --print-join-command
kubeadm join 172.16.0.10:6443 --token v176xt.u3bzqyqcq08z5r20     --discovery-token-ca-cert-hash sha256:4899a66e66216d9315107ac79fabe868f64bc97b0ca19803756fff586e10d187 

on worker:

root@n1:~# kubeadm join 172.16.0.10:6443 --token v176xt.u3bzqyqcq08z5r20     --discovery-token-ca-cert-hash sha256:4899a66e66216d9315107ac79fabe868f64bc97b0ca19803756fff586e10d187

get:

[root@master ~]# kubectl get nodes -o wide
NAME     STATUS   ROLES                  AGE    VERSION   INTERNAL-IP   EXTERNAL-IP   OS-IMAGE                KERNEL-VERSION               CONTAINER-RUNTIME
master   Ready    control-plane,master   132d   v1.20.8   172.16.0.10   <none>        CentOS Linux 7 (Core)   5.11.6-1.el7.elrepo.x86_64   docker://20.10.5
n1       Ready    <none>                 13m    v1.20.8   172.16.0.5    <none>        Ubuntu 18.04.5 LTS      5.0.2-aml-s905               docker://20.10.7
node01   Ready    <none>                 58d    v1.20.8   172.16.0.11   <none>        CentOS Linux 7 (Core)   5.11.6-1.el7.elrepo.x86_64   docker://20.10.5

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code