1 [root@master opt]# kubectl get pods -n kube-system 2 NAME READY STATUS RESTARTS AGE 3 coredns-9d85f5447-ldxld 0/1 Pending 0 4h16m 4 coredns-9d85f5447-s9m78 0/1 Pending 0 4h16m 5 etcd-master 1/1 Running 0 4h16m 6 kube-apiserver-master 1/1 Running 0 4h16m 7 kube-controller-manager-master 1/1 Running 0 4h16m 8 kube-flannel-ds-amd64-h44hf 0/1 Init:ImagePullBackOff 0 10m 9 kube-proxy-ckppj 1/1 Running 0 4h16m 10 kube-scheduler-master 1/1 Running 0 4h16m
首先来看yaml文件默认的写法:
- name: kube-flannel image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-amd64 command: - /opt/bin/flanneld args: - --ip-masq - --kube-subnet-mgr resources: requests: cpu: "100m" memory: "50Mi"
然后看一下本地镜像
[root@master opt]# docker images|grep fla lizhenliang/flannel v0.11.0-amd64 ff281650a721 11 months ag
然后可以发现,本地并没有这个镜像
quay-mirror.qiniu.com/coreos/flannel:v0.11.0-amd64
所以,有两个解决方法:
1:拉取默认配置镜像
2:修改yaml文件,使用替代镜像