Skip to content

Commit

Permalink
Add PHP memory limit configuration for proximity API
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Exler <steffen@exivity.com>
  • Loading branch information
linuxluigi committed Jan 15, 2024
1 parent a048065 commit 2bf7755
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions charts/exivity/templates/proximity/api.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ spec:
{{- if .Values.ingress.trustedProxy }}
- name: TRUSTED_PROXY
value: {{ printf "%s" (.Values.ingress.trustedProxy) | quote }}
{{- end }}
{{- if .Values.service.proximityApi.phpMemoryLimit }}
- name: PHP_MEMORY_LIMIT
value: {{ printf "%s" (.Values.service.proximityApi.phpMemoryLimit) | quote }}
{{- end }}
{{- include "exivity.nfs-liveness" $ | indent 10}}
{{- with .Values.service.pullSecrets }}
Expand Down
7 changes: 5 additions & 2 deletions charts/exivity/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,15 @@ service:
requests:
cpu: "25m"
memory: "50Mi"

proximityApi:
registry: ""
repository: exivity/proximity-api
tag: ""
pullPolicy: ""
# set the PHP memory limit per requests
# https://www.php.net/manual/en/ini.core.php#ini.memory-limit
phpMemoryLimit: "3G"
servicePort: 80
serviceType: ClusterIP
replicas: 1
Expand Down Expand Up @@ -208,7 +211,7 @@ service:
requests:
cpu: "25m"
memory: "50Mi"

horizon:
registry: ""
repository: exivity/horizon
Expand Down

0 comments on commit 2bf7755

Please sign in to comment.