Unable to pull from knative - but able from a "normal" deploy

Viewed 21

I have a private registry running and I can do a normal deploy, but when using knative I get errors.

The registry is running with basic authentication, user and password. I have configured each node(containerd) to use this insecure-registry.

I have found this and added

Why is knative

kubectl create secret docker-registry container-registry \
    --docker-server=http://<ip>:5000 \
    --docker-email=\
    --docker-username=name \
    --docker-password=password

and:

kubectl patch serviceaccount default -p "{\"imagePullSecrets\": [{\"name\": \"container-registry\"}]}"

And added to the service:

spec:
  template:
    spec:
      imagePullSecrets:
        - name: container-registry

But I am still getting errors: kubectl describe ksvc helloworld-go note it is looking for https

Message:                     Revision "helloworld-go-00001" failed with message: Unable to fetch image "<ip>:5000/demo": failed to resolve image to digest: Get "https://<ip>:5000/v2/": http: server gave HTTP response to HTTPS client.

I can do:

kubectl run test --image=<ip>:5000/demo

and the pod is running.

I tought that if I waas able to pull from a normal deployment, why can I not using knative?

0 Answers
Related