indeedeng / harbor-container-webhook

mutating webhook which rewrites container images to use a Harbor proxy cache
Apache License 2.0
68 stars 15 forks source link

Back-off restarting failed container harbor-container-webhook in pod harbor-container-webhook-858864cd49-qpw9z #40

Open anmolsaini-hpe opened 1 month ago

anmolsaini-hpe commented 1 month ago

I followed the steps to install container webhook via HELM :

Option 1: Install from chart repository

helm repo add harbor-container-webhook https://indeedeng.github.io/harbor-container-webhook/

helm install harbor-container-webhook harbor-container-webhook/harbor-container-webhook -n harbor-container-webhook --create-namespace

I am getting below error :

] $ kubectl get po --namespace harbor-container-webhook NAME READY STATUS RESTARTS AGE harbor-container-webhook-858864cd49-qpw9z 0/1 Error 2 (26s ago) 28s

Events: Type Reason Age From Message


Normal Scheduled 45s default-scheduler Successfully assigned harbor-container-webhook/harbor-container-webhook-858864cd49-qpw9z to ip-10-180-164-7.us-west-2.compute.internal Normal Pulled 3s (x4 over 44s) kubelet Container image "ghcr.io/indeedeng/harbor-container-webhook:main" already present on machine Normal Created 3s (x4 over 44s) kubelet Created container harbor-container-webhook Normal Started 3s (x4 over 44s) kubelet Started container harbor-container-webhook Warning BackOff 2s (x8 over 43s) kubelet Back-off restarting failed container harbor-container-webhook in pod harbor-container-webhook-858864cd49-qpw9z_harbor-container-webhook(b4bf2067-9e9d-4f25-a18e-2de1877d223c)

Could you please help here in installing webhook correctly ?

anmolsaini-hpe commented 1 month ago

POD LOGS :

] $ kubectl logs harbor-container-webhook-858864cd49-pxqrc -n harbor-container-webhook 2024-07-15T08:47:35Z ERROR setup no proxy rules configured from /etc/hcw/config/webhook-config.yaml main.main /workspace/main.go:61 runtime.main /usr/local/go/src/runtime/proc.go:267