Uploaded image for project: 'Knative Serving'
  1. Knative Serving
  2. SRVKS-673

knative-serving webhook CrashLoopBackOff indefinitely, killed by liveness probe before it can acquire lease

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 1.12.0
    • 1.11.0
    • None
    • False
    • False
    • Undefined
    • Serverless Sprint 193

      When the webhook lease in the knative-serving namespace is left in inconsistent state (with holderIdentity set, perhaps due to unclean webhook crash or uninstallation)

      Installing KnativeServing fails with the webhook in a CrashLoopBackOff state indefinitely, as the liveness probe kills the webhook before it has time to acquire the lease.

      To reproduce:
      1. Create KnativeServing
      2. Delete KnativeServing
      3. Fake lease inconsistency

      oc patch lease -n knative-serving webhook.webhookcertificates.00-of-01 -p '{"spec":{"holderIdentity":"foobar"}}'
      

      4. Create KnativeServing
      5. Notice the webhook crashloops, as its killed by liveness before it can acquire the lease

      Adding some initialDelaySeconds to the webhook liveness probe seems to fix the problem

              markusthoemmes Markus Thömmes (Inactive)
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: