I can’t authenticate against my azure container registry.
Same token is used by argocd for pulling images from the same registry and it works fine.
could not get tags: Get “https://myregistry.azurecr.io/v2/myimage/tags/list”: unauthorized: authentication required
argocd-image-updater test myregistry.azurecr.io/myimage
DEBU[0000] Creating in-cluster Kubernetes client
INFO[0000] retrieving information about image image_alias= image_name=myregistry.azurecr.io/myimage registry_url=myregistry.azurecr.io
DEBU[0000] setting rate limit to 20 requests per second prefix=myregistry.azurecr.io registry=”https://myregistry.azurecr.io”
DEBU[0000] Inferred registry from prefix myregistry.azurecr.io to use API https://myregistry.azurecr.io
INFO[0000] Fetching available tags and metadata from registry application=test image_alias= image_name=myregistry.azurecr.io/myimage registry_url=myregistry.azurecr.io
FATA[0000] could not get tags: Get “https://myregistry.azurecr.io/v2/myimage/tags/list”: unauthorized: authentication required
My configmap is correctly configured
$ cat /app/config/registries.conf
registries:
- name: acrdev
prefix: myregistry.azurecr.io
api_url: https://myregistry.azurecr.io
credentials: pullsecret:argocd/pull-argo-test
default: true/
Secret has been created correctly:
kubectl -n argocd create secret docker-registry pull-argo-test –docker-server=myregistry.azurecr.io –docker-username=myregistry –docker-password=ioPxhybpxvfdmklvmdfkcvlcdfjvlmdACRDEKsV/ -o yaml –dry-run=client | kubectl -n argocd apply -f –
I tried to use a secret instead of a pull secret but it didn’t work either.
I tried recreate token as repo_admin but id didn’t work.
G199999 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.