This message was deleted.
# k3s
a
This message was deleted.
1
c
1. You don’t need to add a mirror for your registry if the endpoint is the same as the hostname.
<https://harbor.k8s.lan>
is the default endpoint for a registry named
harbor.k8s.lan
. 2. Unfortunately since you did add an endpoint, it is using that. However, your endpoint includes a port, but your config key does not.
harbor.k8s.lan:443
is not the same as
harbor.k8s.lan
- yes that’s the default port for https, but the code is matching strings here.
tl;dr all you need is
Copy code
configs:
  "harbor.k8s.lan":
    tls:
      insecure_skip_verify: true
drop everything else
Note how all the examples in the docs have the same host:port value in the endpoints and configs. Either include the port, or don’t - but be consistent. https://docs.k3s.io/installation/private-registry
p
Thanks I will try that tonight 🙂 The funny thing is that this has worked before, so I am a bit confused. All I did was init a new Harbor instance.
btw, will a change in
/etc/rancher/k3s/registries.yaml
be applied after
systemctl restart k3s
?
c
yep
👍 1
p
Thanks. It is working now!