猪齿鱼pod出现ImagePullBackOff、ErrImagePull

猪齿鱼主页面报网络异常,查看后台发现asgard报错
其他服务都无异常

[root@env]# kubectl  get pod -n c7n-system -w
choerodon-asgard-669c799f8d-bgjpm                    0/1     Init:ImagePullBackOff   0          3m36s

重启pod、删除pod都没有解决问题。。。
一下是pod的describe:

Events:
  Type     Reason     Age                   From               Message
  ----     ------     ----                  ----               -------
  Normal   Scheduled  3m16s                 default-scheduler  Successfully assigned c7n-system/choerodon-asgard-669c799f8d-bgjpm to node1
  Warning  Failed     3m15s                 kubelet            Failed to pull image "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": rpc error: code = Unknown desc = failed to pull and unpack image "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": failed to resolve reference "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": failed to do request: Head "https://registry.cn-shanghai.aliyuncs.com/v2/c7n/skywalking-agent/manifests/6.6.0": read tcp 10.70.19.114:45194->139.196.71.17:443: read: connection reset by peer
  Warning  Failed     2m59s                 kubelet            Failed to pull image "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": rpc error: code = Unknown desc = failed to pull and unpack image "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": failed to resolve reference "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": failed to do request: Head "https://registry.cn-shanghai.aliyuncs.com/v2/c7n/skywalking-agent/manifests/6.6.0": read tcp 10.70.19.114:45950->139.196.71.17:443: read: connection reset by peer
  Warning  Failed     2m31s                 kubelet            Failed to pull image "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": rpc error: code = Unknown desc = failed to pull and unpack image "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": failed to resolve reference "registry.cn-shanghai.aliyuncs.com/c7n/skywalking-agent:6.6.0": failed to do request: Head "https://registry.cn-shanghai.aliyuncs.com/v2/c7n/skywalking-agent/manifests/6.6.0": read tcp 10.70.19.114:47222->139.196.71.17:443: read: connection reset by peer
  Warning  Failed     113s (x6 over 3m15s)  kubelet            Error: ImagePullBackOff
  Warning  Failed     101s (x4 over 3m15s)  kubelet            Error: ErrImagePull

麻烦看一下该如何解决。

如下图镜像是存在的。请检查一下你的网络是否正常。

或者替换镜像地址:

helm upgrade choerodon-asgard c7n/choerodon-asgard \
    --reuse-values \
    --set plugins.skywalkingAgentImage=registry.hand-china.com/tools/skywalking-agent:6.6.0 \
    -n c7n-system \
    --version <version>

确实是因为这个原因导致的。
因为用的是公司内部服务器,不能访问外网。
所有的pod都会自动更新吗?
我不需要更新的话该如何设置?