magnificent-vr-88571
05/23/2022, 12:49 PMEvents:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 21s default-scheduler Successfully assigned default/ecr-pod to sv11
Normal BackOff 8s kubelet Back-off pulling image "private-registry/utils-img:latest"
Warning Failed 8s kubelet Error: ImagePullBackOff
Normal Pulling <invalid> (x2 over 8s) kubelet Pulling image "private-registry/utils-img:latest"
Warning Failed <invalid> (x2 over 8s) kubelet Failed to pull image "private-registry/utils-img:latest": rpc error: code = NotFound desc = failed to pull and unpack image "private-registry/utils-img:latest": failed to unpack image on snapshotter overlayfs: unexpected media type text/html for sha256:6066282cb389d5bee17ec9f08335850ece266457a557511d3f5e78eabc34df21: not found
Warning Failed <invalid> (x2 over 8s) kubelet Error: ErrImagePull
I am trying to add rewrite as mentioned https://github.com/k3s-io/k3s/issues/5502#issuecomment-1109107238 to overcome this issue.
After adding rewrite /etc/rancher/rke2/registries.yaml
its not reflected in the environment, would like to know rewrite in /var/lib/rancher/rke2/agent/etc/containerd/config.toml
to overcome this issue.
correct me if am wrong.gifted-cricket-25537
05/23/2022, 7:21 PMconfigs:
"<http://2341234234.dkr.ecr.yyyyy.amazonaws.com|2341234234.dkr.ecr.yyyyy.amazonaws.com>:
you're missing the closing "
heremagnificent-vr-88571
05/23/2022, 10:10 PM"
but still no luck./var/lib/rancher/rke2/agent/etc/containerd/config.toml
and `/etc/rancher/rke2/registries.yaml`changes are ignored.creamy-pencil-82913
05/23/2022, 10:14 PM/var/lib/rancher/rke2/agent/etc/containerd/config.toml
is generated dynamically, based on the contents of /etc/rancher/rke2/registries.yaml
magnificent-vr-88571
05/23/2022, 10:32 PM/etc/rancher/rke2/registries.yaml
are not reflected in the environment added config.toml.tmpl
creamy-pencil-82913
05/23/2022, 10:43 PMmagnificent-vr-88571
05/23/2022, 10:44 PMregistries.yaml
registries.yaml
while generating config.toml
.creamy-pencil-82913
05/23/2022, 11:07 PMmagnificent-vr-88571
05/23/2022, 11:11 PMmirrors:
harbor.local:
endpoint:
- "<https://harbor.local.org/>"
configs:
"harbor.local":
tls:
insecure_skip_verify: true
mirrors:
"harbor.local":