nolar / kopf

A Python framework to write Kubernetes operators in just a few lines of code

Home Page:https://kopf.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Behaviour of timer with finalizer

monera023 opened this issue · comments

Keywords

finalizer, timer

Problem

While using kopf in a workflow we are facing an issue where some of our pods are getting stuck in Terminating state with the finalizer and deletionTimestamp. These pods seem to be stuck unless manual patch is done.
We just use on.event and .timer for our use case.

I had a few questions:

  1. When does kopf add this finalizers?
  2. Even though we have a .timer which runs in an interval (1 min ) and checks for such Terminating pods, such pods still remain. When does finalizer get removed from such pods?

If these pods are stuck due to operator on something how can we check?

We use kopf: 0.28