Repository navigation
Description
I've been having this issue for pretty much as long as I can remember, and it's always kyverno deployments that seem to have the issue when they upgrade their minor version levels.
After it blew up my large deployment agent that has a memory limit of 2Gi, I ran an upgrade from Kyverno v1.17.2 to v1.18.0 using /usr/bin/time -v on my PC to measure resource usage and it showed:
Maximum resident set size (kbytes): 377543
So that's ~ 3.6 Gi of RAM peak which seems high.
I have 3 releases of Kyverno in the cluster I took the measurement from (including the upgrade I performed above, so there were 2 when it started).
$ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
kyverno kyverno 3 2026-04-30 12:40:55.304398956 +0800 AWST deployed kyverno-3.8.0 v1.18.0
And here's the history:
$ helm history kyverno
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Thu Apr 16 13:13:10 2026 superseded kyverno-3.7.1 v1.17.1 Install complete
2 Tue Apr 28 02:29:17 2026 superseded kyverno-3.7.2 v1.17.2 Upgrade complete
3 Thu Apr 30 12:40:55 2026 deployed kyverno-3.8.0 v1.18.0 Upgrade complete
I also measured the same upgrade on our production cluster that has 46 releases and keeps a history of the last 10, and memory usage was still comparable (around 3.6Gi still).
Note that I deploy all manner of other things (grafana, prometheus, and thanos being other larger ones) using a deployment agent with only 1Gi of RAM and have never hit an issue with those.
It's only the Kyverno Helm chart that seems to have this issue for me.
I use helmfile to deploy releases.
The helmfile.yam.gotmpl file has the release defined like so:
- name: kyverno
namespace: {{ env "RELEASE_NAMESPACE" | default "kyverno" }}
chart: kyverno/kyverno
installed: {{ (env "DEPLOY_LABEL_KYVERNO") | default "true" }}
labels:
app: kyverno
values:
- helm/vars/kyverno.yaml.gotmpl
and the repositories section has:
- name: kyverno
url: https://kyverno.github.io/kyverno/
My helm plugins are:
$ helm plugin list
NAME VERSION DESCRIPTION
diff 3.15.6 Preview helm upgrade changes as a diff
helm-git 1.5.2 Get non-packaged Charts directly from Git.
unittest 1.0.3 Unit test for helm chart in YAML with ease to keep your chart functional and robust.
The version of helmfile is v1.4.4 and the version of helm is v3.20.2
Activity
ntopee commentedon May 20, 2026
I am facing the exact same issue. I am managing hundreds of helm deployments across my clusters with ansible (using helm-diff) with no issues, except for kyverno. I haven't been able to upgrade it for a long time on some of my clusters where I dont have 4gb+ memory available on the management server. Helm-diff on the rest of my deployments (even on bigger ones like prometheus-stack) work fine with <1GB memory usage, kyverno needs 3.5GB+
fix: reduce memory usage in diff by using linear-space LCS algorithm (d…
yxxhero commentedon Jun 18, 2026
@jim-barber-he how is the latest version?