来自守护程序的错误响应:获取https://armdocker.rnd.se/v1/_ping:未找到

时间:2018-05-30 19:31:47

标签: kubernetes

我正在使用Kubernetes版本1.10。

我正在尝试从本地docker repo中提取图像。我已经创建了正确的秘密。

[root@node1 ~]# kubectl get secret
NAME                   TYPE                                  DATA      AGE
arm-docker        kubernetes.io/dockerconfigjson        1         10m

详细检查秘密会给我正确的身份验证令牌

[root@node1 ~]# kubectl get secret arm-docker --output="jsonpath={.data.\.dockerconfigjson}" | base64 -d
{"auths":{"armdocker.rnd.se":{"username":"<MY-USERNAME>","password":"<MY-PASSWORD>","email":"<MY-EMAIL>","auth":"<CORRECT_AUTH_TOKEN>"}}}

但是当我创建一个Pod时,我得到以下错误:

Events:
  Type     Reason                 Age               From               Message
  ----     ------                 ----              ----               -------
  Normal   Scheduled              13s               default-scheduler  Successfully assigned authorization-backend-deployment-8fd5fc8d4-msxvd to node6
  Normal   SuccessfulMountVolume  13s               kubelet, node6     MountVolume.SetUp succeeded for volume "default-token-w7vlf"
  Normal   BackOff                4s (x4 over 10s)  kubelet, node6     Back-off pulling image "armdocker.rnd.se/proj/authorization_backend:3.6.15"
  Warning  Failed                 4s (x4 over 10s)  kubelet, node6     Error: ImagePullBackOff
  Normal   Pulling                1s (x2 over 12s)  kubelet, node6     pulling image "armdocker.rnd.se/proj/authorization_backend:3.6.15"
  Warning  Failed                 1s (x2 over 12s)  kubelet, node6     Failed to pull image "armdocker.rnd.se/proj/authorization_backend:3.6.15": rpc error: code = Unknown desc = Error response from daemon: Get https://armdocker.rnd.se/v1/_ping: Not Found
  Warning  Failed                 1s (x2 over 12s)  kubelet, node6     Error: ErrImagePull

为什么要寻找/v1/_ping?我可以以某种方式禁用它吗?

我无法理解这里的问题。

1 个答案:

答案 0 :(得分:0)

一旦确定了你的秘密,你需要在你的pod中使用它(你没有使用它)。

 kind: Pod
 ...
 spec:
   imagePullSecrets:
   - name: arm-docker