From 016c76af780b33d728abe0aef7c5692b7bd1e875 Mon Sep 17 00:00:00 2001 From: IvanHunters Date: Sun, 6 Sep 2026 21:23:34 +0300 Subject: [PATCH] fix(harbor): give the nginx proxy explicit resources so it survives the tenant LimitRange With expose.type=clusterIP the goharbor chart deploys an nginx proxy pod, but the chart set no resources for it. In a tenant namespace the LimitRange defaults any container without resources to a 128Mi memory limit, so the proxy is OOMKilled (exit 137) and Harbor never comes up. Set the nginx proxy to t1.small (512Mi) and bump the portal (also nginx-based) from t1.nano (128Mi) to t1.micro (256Mi) for the same reason. Signed-off-by: IvanHunters (cherry picked from commit 5a7e2d5546c0124ce4823920286eeb1086164216) Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> --- packages/apps/harbor/templates/harbor.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/apps/harbor/templates/harbor.yaml b/packages/apps/harbor/templates/harbor.yaml index 3bb00f0ce..5601b1411 100644 --- a/packages/apps/harbor/templates/harbor.yaml +++ b/packages/apps/harbor/templates/harbor.yaml @@ -191,8 +191,10 @@ spec: {{- end }} {{- end }} {{- end }} + nginx: + resources: {{- include "cozy-lib.resources.defaultingSanitize" (list "t1.small" (dict) $) | nindent 10 }} portal: - resources: {{- include "cozy-lib.resources.defaultingSanitize" (list "t1.nano" (dict) $) | nindent 10 }} + resources: {{- include "cozy-lib.resources.defaultingSanitize" (list "t1.micro" (dict) $) | nindent 10 }} core: {{- if and $tokenKey $tokenCert }} tokenKey: {{ $tokenKey | quote }}