Skip to content

Commit 6f57084

Browse files
committed
api_deployment.yaml: set GOMEMLIMIT variable
See https://pkg.go.dev/runtime#hdr-Environment_Variables from https://frankenphp.dev/docs/performance/#go-runtime-configuration For now to the same value as requests memory.
1 parent 66efc58 commit 6f57084

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.helm/ecamp3/templates/api_deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ spec:
141141
name: {{ include "api.name" . }}
142142
key: oauth-jubladb-base-url
143143
{{- end }}
144+
- name: GOMEMLIMIT
145+
value: "{{ .Values.api.resources.requests.memory }}B"
144146
volumeMounts:
145147
- mountPath: /app/config/jwt/public.pem
146148
name: jwt-keypair

0 commit comments

Comments
 (0)