https://rancher.com/ logo
Title
b

brief-ability-87157

05/11/2022, 12:55 AM
Hello everyone! How can I add a private registry to an existing cluster? From the doc on the site, it's not clear if it's possible. Initially, I created a cluster with
--registry-config
flag.
b

big-librarian-12753

05/11/2022, 1:54 AM
Did you try anything like this
[...]
$ cat >~/.k3d/registries.yaml <<EOF
mirrors:
  "registry.localhost:5000":
    endpoint:
      - "<http://registry.localhost:5000|http://registry.localhost:5000>"
[...]
$ k3d cluster create ... -v ~/.k3d/registries.yaml:/etc/rancher/k3s/registries.yaml
• I use above for connecting to a docker registry container however above can be expanded to use private registry with creds and tls etc • And I didn't grok enough to find other ways as above worked for me 😅
• Seems I misread the req, not sure for existing cluster.