Closed bastjan closed 1 year ago
May be related to https://github.com/kyverno/kyverno/issues/2498
Note the log was removed but it is still visible in the client side rate limits:
The big drop in log volume is when we set higher throttling limits.
We do ~25k PUT /updaterequests/
requests per hour (query&g0.tab=0&g0.stacked=0&g0.show_exemplars=0&g0.range_input=8d))
Almost all of the manifests and queries on them are resulting from the quota-and-limit-range-in-ns
policy.
❯ ka -nsyn-kyverno get updaterequests | grep ur- | wc -l
324
❯ ka -nsyn-kyverno get updaterequests | grep ur- | grep quota-and-limit-range-in-ns | wc -l
322
Kyverno reconciles these manifests every few minutes and on every update to the triggering
object.
Every update does:
updaterequests
updaterequests/status
since the status is updated for every generated resource.RMA0 with newer kyverno v1.8.2
does not seem to reconcile the quota-and-limit-range-in-ns
, we need to see if that is because of the verison or cluster environment.
Kyverno might get triggered by the high amount of PUT namespaces
. Almost all puts seem to come from the system:serviceaccount:openshift-operator-lifecycle-manager:olm-operator-serviceaccount
.
These PUT
do not show up with watch so a kubebuilder controller should be fine.
The issue seems to be fixed with OCP4.11.
We updated Kyverno to v1.8.x
and OpenShift to v4.11.x
. The drop in PUT updaterequests
does correlate with the OCP upgrade, not with the Kyverno upgrade. See attached graph.
The OLM operator does not show up in apirequestcounts
anymore. Seems to be a fix from RedHat side.
Closing this as done.
We seem to generate a lot of generate requests even on the neglected and smaller beta cluster:
2500/h, possibly more if the client throttling is removed.
Can this hit us if we have bigger clusters with more quotas/namespaces?
Steps to Reproduce the Problem
See Kibana: https://logging.apps.lpg1.ocp4-poc.appuio-beta.ch/app/kibana/...&_a=(columns:!(message,kubernetes.namespace_name),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:ca625880-68a8-11ec-9452-47fb3714b362,key:kubernetes.namespace_name,negate:!f,params:(query:syn-kyverno,type:phrase),type:phrase,value:syn-kyverno),query:(match:(kubernetes.namespace_name:(query:syn-kyverno,type:phrase))))),index:ca625880-68a8-11ec-9452-47fb3714b362,interval:h,query:(language:lucene,query:'updated%20generate'),sort:!('@timestamp',desc)))
Expected Behavior
Generate requests only of something changed.