aojea / kindnet

minimalistic Kubernetes network plugin
128 stars 19 forks source link

Publish container images on quay or ghcr? #21

Closed hellt closed 1 year ago

hellt commented 1 year ago

Hi @aojea Docker hub has imposed pull limits long time ago. When deploying KNE cluster based on kind we leverage kindnet CNI and I would love to see the image to be available at ghcr.io for instance, as pulling it without auth hits pull limits, and configuring auth inside kind is a step I'd like to avoid...

  Normal   Scheduled  85s                default-scheduler  Successfully assigned kube-system/kindnet-mwjmk to srl-test-control-plane
  Normal   Pulling    38s (x3 over 85s)  kubelet            Pulling image "aojea/kindnetd:v1.0.1"
  Warning  Failed     35s (x3 over 82s)  kubelet            Failed to pull image "aojea/kindnetd:v1.0.1": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/aojea/kindnetd:v1.0.1": failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/aojea/kindnetd/manifests/sha256:cb4e59bf2a28ada50ffd0b1120d223c58a344ba0694e8f8ef4140b1143bb84c4: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
  Warning  Failed     35s (x3 over 82s)  kubelet            Error: ErrImagePull
  Normal   BackOff    8s (x4 over 81s)   kubelet            Back-off pulling image "aojea/kindnetd:v1.0.1"
  Warning  Failed     8s (x4 over 81s)   kubelet            Error: ImagePullBackOff

(still would love to know how to pass auth token to kind)

aojea commented 1 year ago

working on it https://github.com/aojea/kindnet/commit/a5cb03e777ba1fad382514f50740f6052181a7ff

aojea commented 1 year ago

here you go https://github.com/aojea/kindnet/pkgs/container/kindnetd/81606369?tag=v1.1.0