问题一:

 kube-system     calico-etcd-p69cf                              crashloopbackoff
kube-system     calico-kube-controllers-cd589c58b-qxbcr          containercreating
kube-system     calico-node-ckk5x                      containercreating 

解决重启:

# systemctl restart kubelet

问题二:

kubectl get pods时发现容器一直是pending状态:

0/1 nodes are available: 1 node(s) had taints that the pod didn’t tolerate.

解决方法:

kubectl taint nodes --all node-role.kubernetes.io/master-

问题三:

  [ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-controller-manager:v1.15.1: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled wile waiting for connection (Client.Timeout exceeded while awaiting headers)
, error: exit status 1 

解决方法:

docker pull quay.io/coreos/flannel:v0.11.0-amd64
docker pull registry.aliyuncs.com/google_containers/kube-apiserver:v1.15.0
docker pull registry.aliyuncs.com/google_containers/kube-proxy:v1.15.0
docker pull registry.aliyuncs.com/google_containers/kube-controller-manager:v1.15.0
docker pull registry.aliyuncs.com/google_containers/kube-scheduler:v1.15.0
docker pull registry.aliyuncs.com/google_containers/coredns:1.3.1
docker pull registry.aliyuncs.com/google_containers/etcd:3.3.10
docker pull registry.aliyuncs.com/google_containers/pause:3.1

# docker tag registry.aliyuncs.com/google_containers/kube-apiserver:v1.15.0 k8s.gcr.io/kube-apiserver:v1.15.0

# docker tag registry.aliyuncs.com/google_containers/kube-proxy:v1.15.0 k8s.gcr.io/kube-proxy:v1.15.0

# docker tag registry.aliyuncs.com/google_containers/kube-controller-manager:v1.15.0 k8s.gcr.io/kube-controller-manager:v1.15.0

# docker tag registry.aliyuncs.com/google_containers/kube-scheduler:v1.15.0 k8s.gcr.io/kube-scheduler:v1.15.0

# docker tag registry.aliyuncs.com/google_containers/coredns:1.3.1 k8s.gcr.io/coredns:1.3.1

# docker tag registry.aliyuncs.com/google_containers/etcd:3.3.10 k8s.gcr.io/etcd:3.3.10

# docker tag registry.aliyuncs.com/google_containers/pause:3.1 k8s.gcr.io/pause:3.1

问题四

no object matching key “kube-system/frognew-com-tls-secret” in local store

解决方案:

# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.crt -subj "/CN=k8s.yourdomain.com"
# kubectl create secret tls frognew-com-tls-secret --key="tls.key" --cert="tls.crt" -n kube-system

k8s.yourdomain.com 改成你k8s域名

发表评论

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