elasticsearch:v5.5.1-1和 fluentd-elasticsearch:v2.0.1下载镜像失败 imagePullBackOff的解决方法,其他镜像类似问题:发现镜像错误:imagePullBackOff查看容器在哪台主机上运行,查看命令 kubectl get pods -n kube-system -o wide查看具体错误原因:原来是镜像下载是失败,使用Kubelet describe 查看日志,一定要带上 命名空间kubectl describe pod fluentd-es-v2.0.1-7tgw6 --namespace kube-system报错: Failed to pull image "gcr.io/google-containers/fluentd-elasticsearch:v2.0.1": rpc error: code = Unknown desc = Error response from daemon: Get https://gcr.io/v2/: net/http: request canceled while waiting for connectiongcr.io被防火墙屏蔽了,那就换个国内地方去下载(这里找到2个地方都可以),再下载:docker pull mirrorgooglecontainers/fluentd-elasticsearch:v2.0.1 |
(或者 docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/fluentd-elasticsearch:v2.0.1
重新打上标签:docker tag docker.io/mirrorgooglecontainers/fluentd-elasticsearch:v2.0.1 gcr.io/google-containers/fluentd-elasticsearch:v2.0.1查看docker images查看容器是否起来 kubectl get pods -n kube-system -o wide都running了,成功其他: |