-
Environmental Info: Node(s) CPU architecture, OS, and Version: Cluster Configuration: Describe the bug:
I believe to correct setting up the cluster with k3d. I will print you the configs: How the registires.yaml ist configured: /etc/rancher/k3s/registries.yaml - mirrors:
docker.io:
endpoint:
- https://docker-public.docker.XYZ.com
configs:
docker.io:
auth:
username: USERNAME
password: PASSWORD
auth: BASICAUTH
identity_token: ""
tls:
ca_file: ""
cert_file: ""
key_file: ""
insecure_skip_verify: true I've also checked, if i can pull the images with containred from the server. I works fine:
I've checkd the contaiered config for k3s /var/lib/rancher/k3s/agent/etc/containerd/config.toml [plugins.opt]
path = "/var/lib/rancher/k3s/agent/containerd"
[plugins.cri]
stream_server_address = "127.0.0.1"
stream_server_port = "10010"
enable_selinux = false
sandbox_image = "rancher/mirrored-pause:3.1"
[plugins.cri.containerd]
snapshotter = "overlayfs"
disable_snapshot_annotations = true
[plugins.cri.cni]
bin_dir = "/bin"
conf_dir = "/var/lib/rancher/k3s/agent/etc/cni/net.d"
[plugins.cri.containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
[plugins.cri.registry.mirrors]
[plugins.cri.registry.mirrors."docker.io"]
endpoint = ["https://docker-public.docker.XYZ.com/"]
[plugins.cri.registry.configs."docker.io".auth]
username = "USERNAME"
password = "PASSWORD"
auth = "BASICAUTH"
[plugins.cri.registry.configs."docker.io".tls]
insecure_skip_verify = true Expected behavior: Actual behavior: Additional context / logs: Backporting
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You've asked to use mirrors:
docker.io:
endpoint:
- https://docker-public.docker.XYZ.com
configs:
docker-public.docker.XYZ.com:
auth:
username: USERNAME
password: PASSWORD
auth: BASICAUTH
identity_token: ""
tls:
ca_file: ""
cert_file: ""
key_file: ""
insecure_skip_verify: true |
Beta Was this translation helpful? Give feedback.
mirrors
determines endpoints for a registryconfigs
determines credentials and tls for an endpointYou've asked to use
docker-public.docker.XYZ.com
as your local registry mirror, but haven't configured any credentials for it; you've only configured credentials fordocker.io
. If you want to provide credentials for your internal registry, you should specify it in theconfigs
section: