https://rancher.com/ logo
Title
h

hundreds-hairdresser-46043

11/01/2022, 9:32 AM
I am trying to get past my ETCD error to build using google GAR vs air-gap images "/var/lib/rancher/rke2/agent/images/ but now i am back to where i started. I am unable to pull images from Google GAR. This is my current config for registries.yaml, can anyone tell me why this would not work? Because when it tries to pull the image it says "NAME_INVALID: Request contains an invalid argument" and the URL looks like: https://europe-west4-docker.pkg.dev/v2/token?scope=repository....
mirrors:
<http://europe-west4-docker.pkg.dev|europe-west4-docker.pkg.dev>:
endpoint:
- "<https://europe-west4-docker.pkg.dev>"
<http://docker.io|docker.io>:
endpoint:
- "<https://europe-west4-docker.pkg.dev>"
rewrite:
"^rancher/(.*)": "/rke2/rke2-core-cluster/$1"
<http://index.docker.io|index.docker.io>:
endpoint:
- "<https://europe-west4-docker.pkg.dev>"
rewrite:
"^rancher/(.*)": "/rke2/rke2-core-cluster/$1"
configs:
<http://europe-west4-docker.pkg.dev|europe-west4-docker.pkg.dev>:
auth:
username: _json_key_base64
password: |
ICasasaAgIblah...
c

creamy-pencil-82913

11/01/2022, 3:59 PM
Your rewrite config is adding an extra / at the start of the repo. You're turning rancher/ to /rke2/
­čÖî 1
h

hundreds-hairdresser-46043

11/03/2022, 8:34 AM
@creamy-pencil-82913 THANK YOU SIR! you have no idea how long i have been strugling to understand why it does not work. Stupid slash. OMW haha