Skip to content

Commit

Permalink
Lower resource requests and limits, make them configurable (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
marians committed Mar 14, 2024
1 parent 1d2c09e commit 75ed529
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Update docsy to v0.9.0
- Lower resource requests and limits, make them configurable

## [0.13.0] - 2024-02-16

Expand Down
10 changes: 6 additions & 4 deletions helm/handbook/templates/handbook-deployment.yaml
Expand Up @@ -45,12 +45,14 @@ spec:
- containerPort: 8080
name: http
resources:

requests:
cpu: 100m
memory: 20M
cpu: {{ .Values.resources.handbook.requests.cpu }}
memory: {{ .Values.resources.handbook.requests.memory }}
limits:
cpu: 300m
memory: 20M
cpu: {{ .Values.resources.handbook.limits.cpu }}
memory: {{ .Values.resources.handbook.limits.memory }}

volumeMounts:
- mountPath: /var/cache/nginx
name: cache-volume
Expand Down
10 changes: 6 additions & 4 deletions helm/handbook/templates/staticjscms-deployment.yaml
Expand Up @@ -70,13 +70,15 @@ spec:
ports:
- containerPort: 8080
name: http

resources:
requests:
cpu: 100m
memory: 100M
cpu: {{ .Values.resources.cms.requests.cpu }}
memory: {{ .Values.resources.cms.requests.memory }}
limits:
cpu: 300m
memory: 100M
cpu: {{ .Values.resources.cms.limits.cpu }}
memory: {{ .Values.resources.cms.limits.memory }}

livenessProbe:
httpGet:
path: /
Expand Down
16 changes: 16 additions & 0 deletions helm/handbook/values.yaml
@@ -1,5 +1,21 @@
staticJsCmsHugoStandaloneVersion: 0.0.6

resources:
handbook:
requests:
cpu: 5m
memory: 5M
limits:
cpu: 50m
memory: 30M
cms:
requests:
cpu: 5m
memory: 30M
limits:
cpu: 200m
memory: 60M

secrets:
# Information for staticjscms-hugo-standalone and its OAuth proxy component
- name: staticjscms-secret
Expand Down

0 comments on commit 75ed529

Please sign in to comment.