Skip to content

Commit c47fe3c

Browse files
Merge pull request #123 from CodeForPhilly/codex/fix-oom-errors-in-kubernetes-sandbox
Fix OOM by limiting node memory
2 parents 86838dc + 7a4f05e commit c47fe3c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM node@sha256:426f843809ae05f324883afceebaa2b9cab9cb697097dbb1a2a7a41c5701de7
33
# Install ImageMagick and AWS CLI
44
RUN apk add --no-cache imagemagick aws-cli
55

6-
# Set NODE_OPTIONS for OpenSSL compatibility
7-
ENV NODE_OPTIONS=--openssl-legacy-provider
6+
# Set NODE_OPTIONS for OpenSSL compatibility and limit memory usage
7+
ENV NODE_OPTIONS="--openssl-legacy-provider --max-old-space-size=768"
88

99
WORKDIR /app
1010
COPY package.json package-lock.json ./

helm-chart/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ ingress:
6262

6363
resources:
6464
limits:
65-
memory: 2Gi
66-
requests:
6765
memory: 1Gi
66+
requests:
67+
memory: 512Mi
6868
# Additional resource settings can be added as needed
6969
# limits:
7070
# cpu: 100m

0 commit comments

Comments
 (0)