Open mehdi1-3 opened 1 year 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"
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?