From 15714f592af329ac57612e2d6d4d99362c4706b3 Mon Sep 17 00:00:00 2001 From: Fabian Wiesel Date: Thu, 18 Jun 2026 16:58:22 +0200 Subject: [PATCH] Set GOMEMLIMIT from container memory limit Without GOMEMLIMIT the Go GC is unaware of the container limit and may let the heap grow until the kernel OOM-kills the process. --- .../openstack-hypervisor-operator/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/openstack-hypervisor-operator/templates/deployment.yaml b/charts/openstack-hypervisor-operator/templates/deployment.yaml index b37cfca1..460481c1 100644 --- a/charts/openstack-hypervisor-operator/templates/deployment.yaml +++ b/charts/openstack-hypervisor-operator/templates/deployment.yaml @@ -47,6 +47,10 @@ spec: value: {{ quote .Values.controllerManager.manager.env.labelSelector }} - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} + - name: GOMEMLIMIT + valueFrom: + resourceFieldRef: + resource: limits.memory image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Chart.AppVersion }} livenessProbe: httpGet: