cnrancher / autok3s

Run K3s Everywhere
https://www.suse.com
Apache License 2.0
753 stars 76 forks source link

help: Does autok3s support distributing custom `registries.yaml` to nodes #588

Closed jinjianming closed 1 year ago

jinjianming commented 1 year ago

hello @orangedeng autok3s Does support Customize content distribution to/etc/rancher/k3s/registries.yaml

mirrors:
  docker.io:
    endpoint:
      - "https://mycustomreg.com:5000"
configs:
  "mycustomreg:5000":
    auth:
      username: xxxxxx # 这是私有镜像仓库的用户名
      password: xxxxxx # 这是私有镜像仓库的密码
    tls:
      cert_file: # 镜像仓库中使用的cert文件的路径。
      key_file:  # 镜像仓库中使用的key文件的路径。
      ca_file:   # 镜像仓库中使用的ca文件的路径。

I saw the --registry /etc/autok3s/registries.yaml parameter. Will this be distributed to other hosts

JacieChao commented 1 year ago

Yes, you can config your customized registries.yaml file and pass it to AutoK3s when creating a cluster. AutoK3s will help you to config the registries.yaml file to each K3s nodes.

orangedeng commented 1 year ago

Closing this issue. Feel free to reopen this issue if you have following questions.