Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kubernetes kubelet无法提取映像-x509:由未知权限签名的证书_Kubernetes - Fatal编程技术网

Kubernetes kubelet无法提取映像-x509:由未知权限签名的证书

Kubernetes kubelet无法提取映像-x509:由未知权限签名的证书,kubernetes,Kubernetes,我正在尝试在Windows 7上的VMware Workstation上运行的CentOS 7.3系统群集上安装Kubernetes 1.9.0,遵循Kubernetes the hard way教程。当我进入教程中的验证阶段并尝试启动busybox部署时,pod状态仍然停留在ContainerCreating pod应该运行的节点的kubelet日志显示以下错误消息: failed to get sandbox image \"gcr.io/google_containers/pause:3.

我正在尝试在Windows 7上的VMware Workstation上运行的CentOS 7.3系统群集上安装Kubernetes 1.9.0,遵循Kubernetes the hard way教程。当我进入教程中的验证阶段并尝试启动busybox部署时,pod状态仍然停留在ContainerCreating

pod应该运行的节点的kubelet日志显示以下错误消息:

failed to get sandbox image \"gcr.io/google_containers/pause:3.0\":
failed to pull image \"gcr.io/google_containers/pause:3.0\":
failed to pull image \"gcr.io/google_containers/pause:3.0\":
httpReaderSeeker: failed open: failed to do request:
Get https://storage.googleapis.com/artifacts.google-containers.appspot.com/containers/images/sha256:f112334343777b75be77ec1f835e3bbbe7d7bd46e27b6a2ae35c6b3cfea0987c: x509: certificate signed by unknown authority
我将这两个域添加到/etc/docker/daemon.json中的不安全注册表列表中:

{
  "insecure-registries" : ["gcr.io"],
  "insecure-registries" : ["googleapis.com"]
}
Docker能够从命令行中提取图像:

docker pull gcr.io/google_containers/pause:3.0
Trying to pull repository gcr.io/google_containers/pause ...
3.0: Pulling from gcr.io/google_containers/pause
a3ed95caeb02: Pull complete
f11233434377: Pull complete
Digest: sha256:0d093c962a6c2dd8bb8727b661e2b5f13e9df884af9945b4cc7088d9350cd3ee
你知道为什么kubelet无法提取图像吗

谢谢, TI

daemon.json中的语法为

此外,根据您正在访问的注册表,您可能必须执行kubectl创建机密docker注册表。。。所解释的行动

最后,您可能需要通过在/etc/docker/certs.d中创建一个包含证书的新目录来定义docker证书,如前所述

"insecure-registries" : ["gcr.io" , "googleapis.com"]