OpenShift Serverless KSVC stuck with error "Waiting for load balancer to be ready"

Solution Verified - Updated -

Issue

  • After creating the ksvc, the following error is coming up.
$ oc get ksvc test -oyaml
...
  status:
    address:
      url: http://ksvc.test-namespace.svc.cluster.local
    conditions:
    - lastTransitionTime: "2023-08-21T22:58:00Z"
      status: "True"
      type: AllTrafficAssigned
    - lastTransitionTime: "2023-08-21T22:58:00Z"
      message: autoTLS is not enabled
      reason: TLSNotEnabled
      status: "True"
      type: CertificateProvisioned
    - lastTransitionTime: "2023-08-21T22:58:00Z"
      message: Waiting for load balancer to be ready
      reason: Uninitialized
      status: Unknown
      type: IngressReady
    - lastTransitionTime: "2023-08-21T22:58:00Z"
      message: Waiting for load balancer to be ready
      reason: Uninitialized
      status: Unknown
      type: Ready
    observedGeneration: 1
    traffic:
    - latestRevision: true
      percent: 100
      revisionName: ksvc-00001
    url: https://ksvc.apps.test.example.com
  • The net-kourier-controller pod logs from knative-serving-ingress namespace contains following errors.
$ oc logs net-kourier-controller-f6959475-62t2j
...
2023-09-08T14:22:23.847192502Z {"severity":"ERROR","timestamp":"2023-09-08T14:22:23.841370609Z","logger":"net-kourier-controller","caller":"status/status.go:404","message":"Probing of http://ksvc.apps.test.example.com/ failed, IP: 10.x.x.163:8090, ready: false, error: error roundtripping http://ksvc.apps.test.example.com/healthz: context deadline exceeded (depth: 0)","knative.dev/controller":"knative.dev.net-kourier.pkg.reconciler.ingress.Reconciler","knative.dev/kind":"networking.internal.knative.dev.Ingress","knative.dev/traceid":"2ba058e0-674c-47c0-b0a9-39ba490a3550","knative.dev/key":"test-namespace/ksvc","stacktrace":"knative.dev/networking/pkg/status.(*Prober).processWorkItem\n\t/remote-source/kourier-control/app/vendor/knative.dev/networking/pkg/status/status.go:404\nknative.dev/networking/pkg/status.(*Prober).Start.func1\n\t/remote-source/kourier-control/app/vendor/knative.dev/networking/pkg/status/status.go:289"}

2023-09-06T17:37:36.026316830Z {"severity":"ERROR","timestamp":"2023-09-06T17:37:36.026121562Z","logger":"net-kourier-controller","caller":"status/status.go:404","message":"Probing of http://ksvc.apps.test.example.com/ failed, IP: 10.x.x.35:8090, ready: false, error: error roundtripping http://ksvc.apps.test.example.com/healthz: context deadline exceeded (depth: 0)","knative.dev/controller":"knative.dev.net-kourier.pkg.reconciler.ingress.Reconciler","knative.dev/kind":"networking.internal.knative.dev.Ingress","knative.dev/traceid":"2ba058e0-674c-47c0-b0a9-39ba490a3550","knative.dev/key":"test-namespace/ksvc","stacktrace":"knative.dev/networking/pkg/status.(*Prober).processWorkItem\n\t/remote-source/kourier-control/app/vendor/knative.dev/networking/pkg/status/status.go:404\nknative.dev/networking/pkg/status.(*Prober).Start.func1\n\t/remote-source/kourier-control/app/vendor/knative.dev/networking/pkg/status/status.go:289"}

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 4.x
  • OpenShift Serverless Operator
    • 1.29+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content