This message was deleted.
# rke2
a
This message was deleted.
g
Copy code
configs:
  "<http://2341234234.dkr.ecr.yyyyy.amazonaws.com|2341234234.dkr.ecr.yyyyy.amazonaws.com>:
you're missing the closing
"
here
m
Added closing
"
but still no luck.
RKE2 pickups up only entries from
/var/lib/rancher/rke2/agent/etc/containerd/config.toml
and `/etc/rancher/rke2/registries.yaml`changes are ignored.
c
you should not edit the toml file directly as RKE2 will rewrite it on startup.
/var/lib/rancher/rke2/agent/etc/containerd/config.toml
is generated dynamically, based on the contents of
/etc/rancher/rke2/registries.yaml
If the contents of the registries.yaml are not being reflected in the config.toml, it sounds like you have some syntax errors in that file
Have you by any chance customized the config.toml by providing a custom template?
m
since because
/etc/rancher/rke2/registries.yaml
are not reflected in the environment added
config.toml.tmpl
c
If they aren't getting written into toml then you have a problem with your registries.yaml. you should fix that, not create your own template.
m
sure got it, let me add the registries again and check it
yeah, looks syntax mistake in
registries.yaml
Its good to see an error while we restart rke2 services if there is a syntax mistake in
registries.yaml
while generating
config.toml
.
thank you @creamy-pencil-82913
c
if its just plain bad yaml you should get an error. Its quite possible that it’s valid yaml, but doesn’t do what you want.
m
wrong registries.yaml
Copy code
mirrors:
  harbor.local:
    endpoint:
      - "<https://harbor.local.org/>"
configs:
  "harbor.local":
    tls:
      insecure_skip_verify: true
corrected
Copy code
mirrors:
  "harbor.local":