k8wiz
Kyverno
Medium
Policies

A Kyverno DeletingPolicy with schedule '0 * * * *' has never run yet. When does the cleanup controller first evaluate it?

Select your answer:

Show answer and explanation

Answer: At the next cron tick after its creation time

Explanation

The controller computes the next run from status.lastExecutionTime, or from the policy's creation timestamp when it has never run. After each run it writes lastExecutionTime and requeues the policy for the following tick. A policy created at 10:05 with an hourly schedule therefore first runs at 11:00.

Read more about Kyverno