Hi, I am having trouble setting up a private image...
# k3s
m
Hi, I am having trouble setting up a private image registry as per https://docs.k3s.io/installation/private-registry - i added the following lines to
/etc/rancher/k3s/registries.yaml
on all nodes in my cluster:
Copy code
configs:
  <http://gitea.mycorp.xyz|gitea.mycorp.xyz>:
    auth:
      username: some-bot
      password: XYZABC123
and have restarted k3s, k3s-agent and containerd services. However, my pods fail to pull images from the registry. When I use plain
docker
providing the same credentials or pass
imagePullSecrets
to my pod specs, I can successfully pull any image from that registry (FWIW, the registry is a Gitea instance). How can I debug what configuration k3s/conatinerd is actually using when my pods try to pull the images?
Solved my own problem: without knowing about it, the cluster I am deploying to used
--docker
which does not consider registries.yaml. When using embedded containerd, image pulling works as epected