Skip to content

Instantly share code, notes, and snippets.

@hecklawert
Created October 25, 2022 10:22
Show Gist options
  • Save hecklawert/93a20902bb1e8c9b0dd52fe896d43580 to your computer and use it in GitHub Desktop.
Save hecklawert/93a20902bb1e8c9b0dd52fe896d43580 to your computer and use it in GitHub Desktop.
Knative Errors
W1024 13:32:22.563838 1 client_config.go:617] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
{"level":"fatal","ts":1666618352.5930576,"logger":"fallback.default-domain","caller":"default-domain/main.go:201","msg":"Error finding gateway address","error":"Internal error occurred: failed calling webhook \"webhook.serving.knative.dev\": failed to call webhook: Post \"https://webhook.knative-serving.svc:443/defaulting?timeout=10s\": context deadline exceeded","stacktrace":"main.main\n\tknative.dev/serving/cmd/default-domain/main.go:201\nruntime.main\n\truntime/proc.go:250"}
heck@debian:~# kn service create hello --image gcr.io/knative-samples/helloworld-go --port 8080 --env TARGET=World
Error: Internal error occurred: failed calling webhook "webhook.serving.knative.dev": failed to call webhook: Post "https://webhook.knative-serving.svc:443/defaulting?timeout=10s": context deadline exceeded
heck@debian:~# kc get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
default knative-operator-54c47c9ccc-pm7qn 1/1 Running 0 20h
default operator-webhook-5bcb5df55d-wj5nz 1/1 Running 0 20h
knative-eventing eventing-controller-5dcc448464-24d8n 1/1 Running 0 20h
knative-eventing eventing-webhook-5c46bd57d7-nb4kk 1/1 Running 0 20h
knative-eventing imc-controller-649db7444f-f89mw 1/1 Running 0 20h
knative-eventing imc-dispatcher-5b49f45df6-67q2n 1/1 Running 0 20h
knative-eventing mt-broker-controller-567c9d897-nmfzm 1/1 Running 0 20h
knative-eventing mt-broker-filter-68d9ff8bcc-dsb9z 1/1 Running 0 20h
knative-eventing mt-broker-ingress-ccd7c47b8-8j48s 1/1 Running 0 20h
knative-serving 3scale-kourier-gateway-6966cb4956-4xh7p 1/1 Running 0 20h
knative-serving activator-6d9cd7468-pvqqv 1/1 Running 0 20h
knative-serving autoscaler-9ddf86c57-cg5t6 1/1 Running 0 20h
knative-serving autoscaler-hpa-68bff8dbc9-fp2nn 1/1 Running 0 20h
knative-serving controller-548db77447-hkt9r 1/1 Running 0 20h
knative-serving default-domain-bhfkh 0/1 Error 0 20h
knative-serving default-domain-fbwcz 0/1 Error 0 20h
knative-serving default-domain-gqzhg 0/1 Error 0 20h
knative-serving default-domain-gr7vr 0/1 Error 0 20h
knative-serving default-domain-h5wqf 0/1 Error 0 20h
knative-serving default-domain-hwchh 0/1 Error 0 20h
knative-serving default-domain-nzlq4 0/1 Error 0 20h
knative-serving default-domain-plmpg 0/1 Error 0 20h
knative-serving default-domain-qg8td 0/1 Error 0 20h
knative-serving default-domain-scvwg 0/1 Error 0 20h
knative-serving default-domain-wcp9x 0/1 Error 0 20h
knative-serving domain-mapping-5467fb6b49-kd7tg 1/1 Running 0 20h
knative-serving domainmapping-webhook-5bcf4f5b7f-26rdx 1/1 Running 0 20h
knative-serving net-kourier-controller-74dfc46d57-tmbsw 1/1 Running 0 20h
knative-serving webhook-bb4c8d474-8plj4 1/1 Running 0 20h
kube-system aws-node-vgtn8 1/1 Running 0 22h
kube-system coredns-657694c6f4-47ch9 1/1 Running 0 22h
kube-system coredns-657694c6f4-j5vms 1/1 Running 0 22h
kube-system kube-proxy-ckrpd 1/1 Running 0 22h
2022/10/24 13:24:11 Registering 2 clients
2022/10/24 13:24:11 Registering 2 informer factories
2022/10/24 13:24:11 Registering 3 informers
2022/10/24 13:24:11 Registering 4 controllers
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.599752752Z","logger":"webhook","caller":"profiling/server.go:64","message":"Profiling enabled: false","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.609045138Z","logger":"webhook","caller":"leaderelection/context.go:47","message":"Running with Standard leader election","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.617903884Z","logger":"webhook","caller":"sharedmain/main.go:253","message":"Starting configuration manager...","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"level":"info","ts":1666617851.7181945,"logger":"fallback","caller":"injection/injection.go:61","msg":"Starting informers..."}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.818739969Z","logger":"webhook","caller":"webhook/webhook.go:198","message":"Informers have been synced, unblocking admission webhooks.","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.818780727Z","logger":"webhook","caller":"sharedmain/main.go:281","message":"Starting controllers...","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.818853122Z","logger":"webhook","caller":"leaderelection/context.go:149","message":"webhook.configmapwebhook.00-of-01 will run in leader-elected mode with id \"webhook-bb4c8d474-8plj4_795ac155-ae6b-4a80-a120-5ca3ad749d62\"","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.818885107Z","logger":"webhook.ConfigMapWebhook","caller":"controller/controller.go:486","message":"Starting controller and workers","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.818898281Z","logger":"webhook.ConfigMapWebhook","caller":"controller/controller.go:496","message":"Started workers","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.818998307Z","logger":"webhook","caller":"leaderelection/context.go:149","message":"webhook.webhookcertificates.00-of-01 will run in leader-elected mode with id \"webhook-bb4c8d474-8plj4_3980db4b-939f-4909-afa9-6ffa0aa57699\"","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.819021774Z","logger":"webhook.WebhookCertificates","caller":"controller/controller.go:486","message":"Starting controller and workers","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.81902723Z","logger":"webhook.WebhookCertificates","caller":"controller/controller.go:496","message":"Started workers","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.819067347Z","logger":"webhook","caller":"leaderelection/context.go:149","message":"webhook.defaultingwebhook.00-of-01 will run in leader-elected mode with id \"webhook-bb4c8d474-8plj4_128c3628-4d16-4de8-95a6-7d417d731bae\"","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.819085398Z","logger":"webhook.DefaultingWebhook","caller":"controller/controller.go:486","message":"Starting controller and workers","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.819091089Z","logger":"webhook.DefaultingWebhook","caller":"controller/controller.go:496","message":"Started workers","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.819128641Z","logger":"webhook","caller":"leaderelection/context.go:149","message":"webhook.validationwebhook.00-of-01 will run in leader-elected mode with id \"webhook-bb4c8d474-8plj4_88fa6f20-5a08-40e7-8047-025d2ad7095c\"","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.819155514Z","logger":"webhook.ValidationWebhook","caller":"controller/controller.go:486","message":"Starting controller and workers","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.819161102Z","logger":"webhook.ValidationWebhook","caller":"controller/controller.go:496","message":"Started workers","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
I1024 13:24:11.819212 1 leaderelection.go:248] attempting to acquire leader lease knative-serving/webhook.configmapwebhook.00-of-01...
I1024 13:24:11.819450 1 leaderelection.go:248] attempting to acquire leader lease knative-serving/webhook.webhookcertificates.00-of-01...
I1024 13:24:11.819549 1 leaderelection.go:248] attempting to acquire leader lease knative-serving/webhook.defaultingwebhook.00-of-01...
I1024 13:24:11.819657 1 leaderelection.go:248] attempting to acquire leader lease knative-serving/webhook.validationwebhook.00-of-01...
I1024 13:24:11.833489 1 leaderelection.go:258] successfully acquired lease knative-serving/webhook.configmapwebhook.00-of-01
{"severity":"INFO","timestamp":"2022-10-24T13:24:11.833642089Z","logger":"webhook","caller":"leaderelection/context.go:158","message":"\"webhook-bb4c8d474-8plj4_795ac155-ae6b-4a80-a120-5ca3ad749d62\" has started leading \"webhook.configmapwebhook.00-of-01\"","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4"}
{"severity":"ERROR","timestamp":"2022-10-24T13:24:11.83375304Z","logger":"webhook.ConfigMapWebhook","caller":"controller/controller.go:566","message":"Reconcile error","commit":"812f1c8-dirty","knative.dev/pod":"webhook-bb4c8d474-8plj4","knative.dev/traceid":"ed44d1d2-2ab8-420f-8dd1-04bff7c132b7","knative.dev/key":"config.webhook.serving.knative.dev","duration":"20.529µs","error":"secret \"webhook-certs\" is missing \"ca-cert.pem\" key","stacktrace":"knative.dev/pkg/controller.(*Impl).handleErr\n\tknative.dev/pkg@v0.0.0-20220818004048-4a03844c0b15/controller/controller.go:566\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20220818004048-4a03844c0b15/controller/controller.go:543\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20220818004048-4a03844c0b15/controller/controller.go:491"}
@springCozyRock
Copy link

I have s similar issue, do you know why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment