argocd-image-updater
argocd-image-updater copied to clipboard
Docker Hub and GitHub not working, certificate problem
Describe the bug ImageUpdater doesn't work with public docker images using the default configuration
To Reproduce Deploy ImageUpdater without any registry configuration, add argoCD application with public docker hub image and annotate this app for imageupdater
Expected behavior ImageUpdate should work with public docker hub images out of the box
Version v0.12.2
Logs
level=error msg="Could not get tags from registry: Get \"https://registry-1.docker.io/v2/\": x509: certificate signed by unknown authority" alias= application=my-app image_name=xyz/my-app image_tag=1.0.0 registry=
Similiar to #496
The same thing happend to GitHub:
time="2023-01-26T17:03:19Z" level=error msg="Could not get tags from registry: Get \"https://ghcr.io/v2/\": x509: certificate signed by unknown authority" alias= application=myapp image_name=mac-lucky/myapp image_tag=latest registry=ghcr.io
Is there some kind of flag to omit the certificate check of the website?
The current stable version doesn't have the fix for this issue. You can resolve it by installing a version created after the pull request #497 was merged, like v0.12.2. TL;DR, running kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/v0.12.2/manifests/install.yaml should solve your problem.
This solved it for me, thanks.