2、kubectl的使用
kubectl get cs 获取组件状态(componentstatus)
kubectl get nodes 获取节点信息
kubectl get pods
kubectl get pods -n kube-system -o wide
kubectl get ns 获取命名空间
Node设置
scp /usr/lib/systemd/system/docker.service 192.168.3.16:/usr/lib/systemd/system/docker.service
scp /etc/sysconfig/kubelet 192.168.3.16:/etc/sysconfig/kubelet
kubeadm join 192.168.3.14:6443 --token qp00uv.dry5boapa1wjloy2 --discovery-token-ca-cert-hash sha256:8378595f5056c5236ac1e659326b884880bc99f9fc01f9ae7d9569dcc52df455 --ignore-preflight-errors=Swap
还要加入 --ignore-preflight-errors=Swap