在servers节点上拉取镜像失败,但是在agents节点上正常拉取

环境信息:
K3s 版本: v1.30.11+k3s1

节点 CPU 架构、操作系统和版本: 4.19.90-52.22.v2207.ky10.x86_64

集群配置:

使用官方k3s-io-ansible项目部署的k3s,共三个节点部署,两个servers, 一个agents

问题描述:

在部署相关服务时,pod被调度到agents上时,可以自动拉取镜像,但是pod被调度到servers节点时,提示拉取镜像失败,并且我检查了registries.yaml文件内容和/data/rancher/k3s/agent/etc/containerd/certs.d/hds.registry.com/hosts.toml文件内容,发现在三个节点上面都是一致的

这是 registries.yaml

mirrors:
  "hds.registry.com":
    endpoint:
      - "http://hds.registry.com"  # 仓库地址
configs:
  "hds.registry.com":
    tls:
      insecure_skip_verify: true

这是hosts.toml

# File generated by k3s. DO NOT EDIT.

server = "https://hds.registry.com/v2"
capabilities = ["pull", "resolve", "push"]

skip_verify = true


[host]
[host."http://hds.registry.com/v2"]
  capabilities = ["pull", "resolve"]
  skip_verify = true

私仓是通过registry镜像部署的, 并且使用ingress代理访问,在servers节点通过critl pull 镜像时提示如下


但是在agents节点正常

请问这是什么原因导致

复现步骤:

  • 安装 K3s 的命令:

预期结果:

实际结果:

附加上下文/日志:

日志