argoproj-labs / argocd-image-updater

Automatic container image update for Argo CD
https://argocd-image-updater.readthedocs.io/en/stable/
Apache License 2.0
1.29k stars 265 forks source link

argocd image updater and local regsitry "harbor" #585

Open mehdi1-3 opened 1 year ago

mehdi1-3 commented 1 year ago

I have a local registry 'harbor' with hostname "harbor.local". But argocd Image updater couldn't resolve it. It return in logs "level=error msg="Could not get tags from registry: Get \"https://harbor.local/v2/\": dial tcp: lookup harbor.local on 10.96.0.10:53: no such host" alias= application=testapp image_name=test_pfe/testapp image_tag=v0.1.80 registry=harbor.local" . Even though argoCD deploy from the same registry. Also I can pull for example "docker pull harbor.local/test_pfe/testapp:v0.1.79" works.

Any suggestion?

identw commented 3 months ago

For me, it works with the configuration like:

    registries:
    - api_url: "https://harbor.example.com"
      credentials: "pullsecret:argocd/registry-secret"
      defaultns: "project-name-in-harbor"
      name: "project-name-in-harbor"
      ping: true
      prefix: "harbor.example.com"