Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower resource requests and limits, make them configurable #238

Merged
merged 1 commit into from Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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