CKA 模拟真题 Killer.sh | Question 20 | Update Kubernetes Version and join cluster
Use context: kubectl config use-context k8s-c3-CCC
Your coworker said node cluster3-node2 is running an older Kubernetes version and is not even part of the cluster. Update Kubernetes on that node to the exact version that’s running on cluster3-controlplane1 . Then add this node to the cluster. Use kubeadm for this.
译文
你的同事说 cluster3-node2 节点运行的是旧的Kubernetes版本,甚至不是集群的一部分。将该节点上的Kubernetes版本更新为 cluster3-controlplane1 上运行的版本。使用kubeadm把这个节点添加到集群中。2023-01-10 15:33
kubectl config use-context k8s-c3-CCC |
检查节点
k get node |
连接到远程node2,检查kubeadm, kubelet,kubectl 情况
ssh cluster3-node2 |
更新 kubelet,kubectl到1.26.0-00
root@cluster3-node2:~# apt update |
从控制平面获取join 集群命令链接
ssh cluster3-controlplane1 |
进入node2节点,把从控制平面获取的join token 执行
ssh cluster3-node2 |
检查kubelet 状态
systemctl status kubelet |
检查集群node
k get node |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Hao DevSecOps!
评论



