chart: allow setting deployment resource requests/limits (#1246)

* chart: allow setting deployment resource requests/limits

Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>

* docs: add resources section to Helm chart docs

Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>

* chart: bump chart version

Signed-off-by: Geoff Baskwill <me@geoffbaskwill.ca>
This commit is contained in:
Geoff Baskwill
2019-07-03 16:41:49 -04:00
committed by Aaron Schlesinger
parent a5eba1812b
commit 7fa1e00775
4 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: athens-proxy
version: 0.2.13
version: 0.2.14
appVersion: 0.4.0
description: The proxy server for Go modules
icon: https://raw.githubusercontent.com/gomods/athens/master/docs/static/banner.png
@@ -170,6 +170,10 @@ spec:
- name: ssh-keys
mountPath: /ssh-keys
{{- end }}
{{- with .Values.resources }}
resources:
{{ toYaml . | indent 10 }}
{{- end }}
volumes:
- name: storage-volume
{{- if .Values.storage.disk.persistence.enabled }}
+8
View File
@@ -114,3 +114,11 @@ nodeSelector: {}
tolerations: []
affinity: {}
resources: {}
# limits:
# cpu: 100m
# memory: 64Mi
# requests:
# cpu: 100m
# memory: 64Mi
@@ -104,6 +104,20 @@ By default, the chart will install Athens with a replica count of 1. To change t
helm install gomods/athens-proxy -n athens --namespace athens --set replicaCount=3
```
### Resources
By default, the chart will install Athens without specific resource requests or limits. To change this, change the `resources` value:
```console
helm install gomods/athens-proxy -n athens --namespace athens \
--set resources.requests.cpu=100m \
--set resources.requests.memory=64Mi \
--set resources.limits.cpu=100m \
--set resources.limits.memory=64Mi
```
For more information, see [Managing Compute Resources for Containers](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) in the Kubernetes documentation.
### Give Athens access to private repositories via Github Token (Optional)
1. Create a token at https://github.com/settings/tokens