Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #104 from pelias/placeholder-requests
Browse files Browse the repository at this point in the history
Allow configuring Placeholder CPU/memory requests
  • Loading branch information
orangejulius authored Oct 1, 2019
2 parents 0396a36 + 75d93b7 commit db33803
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/placeholder-deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
memory: 1Gi
cpu: 1.1
requests:
memory: 512Mi
memory: 100Mi
cpu: 0.2
containers:
- name: pelias-placeholder
Expand All @@ -50,8 +50,8 @@ spec:
memory: 1Gi
cpu: 2
requests:
memory: 512Mi
cpu: 0.1
memory: {{ .Values.placeholder.requests.memory | quote }}
cpu: {{ .Values.placeholder.requests.cpu | quote }}
volumes:
- name: data-volume
{{- if .Values.placeholder.pvc.create }}
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ placeholder:
cpus: 1 # how many CPUs to allow using via the npm `cluster2` module
retries: 1 # number of time the API will retry requests to placeholder
timeout: 5000 # time in ms the API will wait for placeholder responses
requests:
memory: 512Mi
cpu: 0.1
annotations: {}
nodeSelector: {}
pvc: {}
Expand Down

0 comments on commit db33803

Please sign in to comment.