goharbor/harbor

setup proxy cache to Google Artifact registry is failing

Aperta

#20.682 aperta il 1 lug 2024

 (13 commenti) (1 reazione) (1 assegnatario)Go (5235 fork)batch import
area/proxy-cachehelp wantedkind/requirement

Metriche repository

Star
 (28.490 stelle)
Metriche merge PR
 (Merge medio 8g 17h) (74 PR mergiate in 30 g)

Descrizione

I have installed harbor and setup ingress and added a proxy registry with Google GCR provider but with Artifact registry as the Endpoint URL(https://us-docker.pkg.dev/<GCP_PROJECT>).

But when i am trying to pull from the harbor endpoint, it is giving the below error. Error response from daemon: unknown: repository proxy-cache/prod-docker-us/hello-world not found

Docker login works and i am using the command in the format as below: docker pull <HARBOR_ENDPOINT>/<HARBOR_PROJECT_NAME>/<GAR_REPO_NAME>/hello-world:latest

And i was able to pull the image from GAR successfully using Google Artifact Registry endpoint.

After checking the harbor-core pod logs, i could see the below logs: 2024-07-01T19:43:19Z [ERROR] [/server/middleware/repoproxy/proxy.go:121]: failed to proxy manifest, fallback to local, request uri: /v2/proxy-cache/hello-world/manifests/latest, error: http status code: 405, body:

Guida contributor