argocd-image-updater icon indicating copy to clipboard operation
argocd-image-updater copied to clipboard

Docker Hub and GitHub not working, certificate problem

Open mac-lucky opened this issue 2 years ago • 3 comments

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

mac-lucky avatar Jan 26 '23 15:01 mac-lucky

Is there some kind of flag to omit the certificate check of the website?

mac-lucky avatar Jan 28 '23 01:01 mac-lucky

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.

sousa-andre avatar Feb 04 '23 17:02 sousa-andre

This solved it for me, thanks.

4F2E4A2E avatar Feb 16 '24 21:02 4F2E4A2E