您好,登錄后才能下訂單哦!
1、Sep 15 18:22:07 k8s-node1 kubelet: E0915 18:22:07.628384 12912 summary.go:102] Failed to get system container stats for "/system.slice/kubelet.service": failed to get cgroup stats for "/system.slice/kubelet.service": failed to get container info for "/system.slice/kubelet.service": unknown container "/system.slice/kubelet.service
docker需要重啟
2、
[discovery] Failed to request cluster info, will try again: [Get https://192.168.1.112:6443/api/v1/namespaces/kube-public/configmaps/cluster-info: x509: certificate has expired or is not yet valid
單節(jié)點加入時區(qū)不對,需要ntpupdate 下時間 ntpdate 182.92.12.11
3、
如果kubectl get nodes 有節(jié)點狀態(tài)是not ready 狀態(tài),可重啟該節(jié)點的docker
執(zhí)行kubectl get nodes 提示如下:
Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
解決辦法,記的kubeadm reset會刪除:
4、
error: open /var/lib/kubelet/config.yaml: no such file or directory
關鍵文件缺失,多發(fā)生于沒有做 kubeadm init就運行了systemctl start kubelet
5、
kubeadm init --apiserver-advertise-address=192.168.11.12 --image-repository registry.aliyuncs.com/google_containers --kubernetes-version v1.13.4 --pod-network-cidr=10.244.0.0/16
kubernete v1.13.4可以指定源進行安裝
6、
kubernete v1.13.4 支持docker-ce-18.06.3.ce-3.el7.x86_64
7、
kubectl get pod --all-namespaces -o wide
保證集群進入running 狀態(tài)后再查看集群狀態(tài),否則可能不正常.這需要幾分鐘
8、
swapoff | #/dev/mapper/centos-swap swap swap defaults 0 0
關閉swap交換分區(qū),交換分區(qū)技術現(xiàn)在基本沒人用
9、kubeadm 重置命令,kubeadm reset,這個會反復用到
10、
kubectl drain node2 --delete-local-data --force --ignore-daemonsets
kubectl delete node node2
kubeadm join 192.168.11.12:6443 --token vabefc.eilf71g7y96twbyz --discovery-token-ca-cert-hash sha256:4e6f2149e6488be130611ccc92137cdaf7a3c64a919c4454604f9857d51453a7
集群加入節(jié)點,刪除節(jié)點
#k8s問題匯總
https://blog.csdn.net/qq_34857250/article/details/82562514
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。