A Kyverno Pod fails with forbidden errors

A Kyverno admission controller restarts repeatedly because two Kyverno instances run in the cluster, so keep one and run the cluster-vars phase again.

Condition

A Kyverno admission controller restarts repeatedly and logs errors such as cannot get resource "customresourcedefinitions".

Cause

Two Kyverno instances run in the cluster, and each took ownership of objects that the other relies on.

Remedy

Set CLUSTER_VAR_kyverno_suspend to true and CLUSTER_VAR_kyverno_namespace to the namespace of the instance to keep, and run the cluster-vars phase again. Do not remove either release.