Skip to content

Commit

Permalink
Set memory and cpu limits for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
henrietteharmse committed Sep 5, 2023
1 parent aaf64df commit cdb5e02
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
6 changes: 5 additions & 1 deletion k8chart-dev/ols4/templates/ols4-backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ spec:
- containerPort: 8080
resources:
requests:
memory: 14Gi
memory: 10Gi
cpu: 250m
limits:
memory: 10Gi
cpu: 750m
env:
- name: OLS_SOLR_HOST
value: http://{{ .Release.Name }}-solr:8983
Expand Down
9 changes: 6 additions & 3 deletions k8chart-dev/ols4/templates/ols4-frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ spec:
image: ghcr.io/ebispot/ols4-frontend:{{.Values.imageTag}}
imagePullPolicy: Always
resources:
requests:
cpu: 2
memory: 4G
requests:
cpu: 250m
memory: 1Gi
limits:
cpu: 500m
memory: 1Gi
ports:
- containerPort: 8080
env:
Expand Down
6 changes: 5 additions & 1 deletion k8chart-dev/ols4/templates/ols4-neo4j-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ spec:
args: ["rm -rf /data/* && wget -qO- $NEO4J_TARBALL_URL | tar -xz -C /data/ && tini -g -- /startup/docker-entrypoint.sh neo4j"]
resources:
requests:
memory: 20Gi
memory: 15Gi
cpu: 250m
limits:
memory: 15Gi
cpu: 750m
env:
- name: NEO4J_HEAP_MEMORY
value: 10g
Expand Down
4 changes: 4 additions & 0 deletions k8chart-dev/ols4/templates/ols4-solr-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
resources:
requests:
memory: 8Gi
cpu: 250m
limits:
memory: 8Gi
cpu: 750m
env:
- name: SOLR_TARBALL_URL
value: {{.Values.solrTarballUrl}}
Expand Down

0 comments on commit cdb5e02

Please sign in to comment.