我正在尝试为我的kubernetes群集启用skyDNS插件。我是公司代理的幕后黑手,似乎无法与gcr.io交谈。日志中显示以下错误:
Oct 20 13:55:46 atomic01.localdomain kubelet[112453]: W1020 13:55:46.143403 112453 manager.go:1569] Failed to pull image "gcr.io/google_containers/kube2sky:1.11" from pod "kube-dns-v9-w492r_kube-system" and container "kube2sky": image pull failed for gcr.io/google_containers/kube2sky:1.11, this may be because there are no credentials on this request. details: (invalid character '<' looking for beginning of value)
我试图从gcr.io中取出的任何内容都失败了,甚至是手动:
# docker pull gcr.io/google_containers/etcd:2.0.9
Trying to pull repository gcr.io/google_containers/etcd ... failed
invalid character '<' looking for beginning of value
我在/etc/sysconfig/docker
中配置了HTTP_PROXY和HTTPS_PROXY变量。我也在同一配置文件中启用了INSECURE_REGISTRY='--insecure-registry gcr.io'
。
我必须应用一种解决方法,手动从docker.io中提取pause
容器并使用--pod_infra_container_image=docker.io/kubernetes/pause:latest
指定
DNS容器有这样的解决方法吗?我可以从其他docker注册表中提取图像就好了。与gcr.io注册表有什么不同,我如何将它与kubernetes一起使用?