Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
BC-37 - BC-91 - reduce resource consumption for deployed schulcloud-e…
Browse files Browse the repository at this point in the history
…ditor (#73)

Make CPU and memory resource consumption configurable.
Set the default for memory to be between 128mb and 1gb
  • Loading branch information
mamutmk5 authored Aug 23, 2021
1 parent 47a4ba9 commit 1803ce9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ansible/roles/schulcloud-editor/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ spec:
name: editor-secret
resources:
limits:
cpu: "1000m"
memory: "1Gi"
cpu: {{ EDITOR_CPU_LIMITS|default("1000m", true) }}
memory: {{ EDITOR_MEMORY_LIMITS|default("1Gi", true) }}
requests:
cpu: "100m"
memory: "1Gi"
cpu: {{ EDITOR_CPU_REQUESTS|default("100m", true) }}
memory: {{ EDITOR_MEMORY_REQUESTS|default("128Mi", true) }}

0 comments on commit 1803ce9

Please sign in to comment.