0

I have a harbor repo which is having docker images and helm charts. I don't want to expose harbor repo directly. I want to pull docker images and helm charts via HA Proxy server.

frontend myfrontend
  bind 0.0.0.0:8080
  use_backend maven-repo if { path_beg -i /repository }
  use_backend harbor-repo if { path_beg -i /dev-registry }

backend maven-repo
  server maven-repo mvn01-ashok-dev.net:443 ssl verify none check inter 5s

backend harbor-repo
  server harbor-repo dev-harbor.pkg.dev:443 ssl verify none check inter 5s

I am able to pull tar file from my maven repository without any issue. But while pulling docker image from my harbor repo i am getting following error.

ashok@ubuntu:~$ docker pull localhost:8080/dev-registry/my-dev-images/myapp:13.0.0
Error response from daemon: received unexpected HTTP status: 503 Service Unavailable

K3s Image pull

ashok@ubuntu:~$ ctr i pull localhost:8080/dev-registry/my-dev-images/myapp:13.0.0
ctr: failed to dial "/run/k3s/containerd/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /run/k3s/containerd/containerd.sock: connect: permission denied"```

I have a harbor repo which is having docker images and helm charts. I don't want to expose harbor repo directly. I want to pull docker images and helm charts via HA Proxy server. 

0 Answers0