cnoe-io / idpbuilder

Spin up a complete internal developer platform with only Docker required as a dependency.
https://cloud-native.slack.com/archives/C05TN9WFN5S
Apache License 2.0
150 stars 45 forks source link

[Bug]: Cannot pull image from gitea packages #243

Open ricker-flow opened 1 month ago

ricker-flow commented 1 month ago

What is your environment, configuration, and command?

idpbuilder 0.4.1

What did you do and What did you see instead?

I can push and pull images to Gitea from the commandline.

docker push gitea.cnoe.localtest.me:8443/deepsky/digitalasset:latest

However, Argo cannot pull the image from Gitea.

Failed to pull image "gitea.cnoe.localtest.me:8443/giteaadmin/digitalasset:latest": 
rpc error: code = Unknown desc = failed to pull and unpack image "gitea.cnoe.localtest.me:8443/giteaadmin/digitalasset:latest": 
failed to resolve reference "gitea.cnoe.localtest.me:8443/giteaadmin/digitalasset:latest": 
failed to do request: Head "https://gitea.cnoe.localtest.me:8443/v2/giteaadmin/digitalasset/manifests/latest": 
dial tcp [::1]:8443: connect: connection refused

Is that the behavior reported with https://github.com/go-gitea/gitea/issues/29591 ?

Additional Information. Logs.

No response

nabuskey commented 1 month ago

This doesn't look like related to the issue linked. Likely because the domain name resolves to 127.0.0.1 inside the cluster. You can work around this by configuring core dns to resolve domain names you are interested in. This is done in the ref implementation example.

I've thinking about making it the default configuration. Any opinions here @nimakaviani @cmoulliard @csantanapr ?

nimakaviani commented 1 month ago

yeah, I like the idea of making cnoe.localtest.me resolve successfully inside the k8s cluster too.

Not sure if it will lead to anti-patterns though, eg for folks to experiment with pushing to gitea manually and configuring argo cd apps out of band.

More benefits than harms though, so it is a +1 from me.

omrishiv commented 1 week ago

@jessesanford is this closed now from your recent PR?