cloud
cloud-native
云原生与 kubernetes
安装 Kubernetes
部署 K8S worker 节点

部署 K8S worker 节点

⚠️

Worker 1, Worker 2 节点安装请参照具体步骤

kubeadm join 192.168.88.101:6443 --token 0qinrd.77drhpnlvc2fvllo \
--discovery-token-ca-cert-hash sha256:01df34acd184e43e5ed37fc292e30394588a7476a4b907149adfece88b2361d8

在master节点上执行命令查看集群中的节点(需要等待新加入节点上的calico-node pod启动正常):

root@master:/mnt/nfs/share/kubernetes# kubectl get nodes
NAME      STATUS   ROLES           AGE    VERSION
master    Ready    control-plane   142m   v1.28.2
worker1   Ready    <none>          52s    v1.28.2
worker2   Ready    <none>          32s    v1.28.2

kubeadm 安装 Kubernetes 集群

在 worker 节点开机启动kubelet服务:

systemctl enable kubelet.service