Replies: 1 comment 9 replies
-
It looks like you're using Registries.yaml is not a cluster resource. The configuration is local to each node, so you must place this configuration on every node that you want to be able to authenticate to your registry. This is also covered at the top of the above-linked page. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environmental Info:
RKE2 Version: 1.28.10+rke2r1
Node(s) CPU architecture, OS, and Version: N/A
Cluster Configuration: 3 master + 3 workers
Describe the bug:
Apologies for opening this ticket but I could not find a way to add GCP Artifact Registry to the RKE2 containerd runtime via the
registries.yaml
file.Steps To Reproduce:
registries.yaml
config file.Expected behavior:
Be able to pull images via
crictl
or inside k8s.Actual behavior:
Pull doesn't work - failing with:
Failed to pull image "europe-docker.pkg.dev/cm-controls/lgm/lgm-hmi:v0.1.0-alpha": failed to pull and unpack image "europe-docker.pkg.dev/cm-controls/lgm/lgm-hmi:v0.1.0-alpha": failed to resolve reference "europe-docker.pkg.dev/cm-controls/lgm/lgm-hmi:v0.1.0-alpha": failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://europe-docker.pkg.dev/v2/token?scope=repository%3Acm-controls%2Flgm%2Flgm-hmi%3Apull&service=europe-docker.pkg.dev: 403 Forbidden
Additional context / logs:
It's likely an error on my end on how to properly configure
registries.yaml
but I feel the documentation can be improved. Also it is not clear if this configuration should be applied to all nodes or only to one master and/or worker and is automatically replicated.Thank you in advance for the support.
Beta Was this translation helpful? Give feedback.
All reactions