Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Provide minimal resources to prevent accidental crashes due to resour…
Browse files Browse the repository at this point in the history
…ce exhaustion

Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
  • Loading branch information
mrsabath authored and marcofranssen committed May 16, 2023
1 parent 1675997 commit 91bdea2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/spire/charts/tornjak-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ service:
port: 3000
annotations: {}

# -- Provide minimal resources to prevent accidental crashes due to resource exhaustion
# resources:
# requests:
# cpu: 50m
# memory: 128Mi
# limits:
# cpu: 100m
# memory: 512Mi

# -- URL of the Tornjak APIs (backend)
# Since Tornjak Frontend runs in the browser, this URL must be accessible from
# the machine running a browser.
Expand Down
7 changes: 7 additions & 0 deletions examples/tornjak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ tornjak-frontend:
type: ClusterIP
port: 3000
apiServerURL: "http://localhost:10000/"
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 100m
memory: 512Mi

0 comments on commit 91bdea2

Please sign in to comment.