Commit ce7a6c1f authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added resource requests for all containers

parent d91d6865
...@@ -73,7 +73,9 @@ spec: ...@@ -73,7 +73,9 @@ spec:
mountPath: /html/storage/logs/metager mountPath: /html/storage/logs/metager
readOnly: false readOnly: false
resources: resources:
{{ toYaml .Values.resources | indent 12 }} requests:
cpu: 500m
memory: 500m
# Nginx Container # Nginx Container
- name: {{ .Chart.Name }}-nginx - name: {{ .Chart.Name }}-nginx
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
...@@ -118,6 +120,10 @@ spec: ...@@ -118,6 +120,10 @@ spec:
{{- end }} {{- end }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
resources:
requests:
cpu: 100m
memory: 100m
# Redis Container # Redis Container
- name: {{ .Chart.Name }}-redis - name: {{ .Chart.Name }}-redis
image: "redis:5.0.3-alpine" image: "redis:5.0.3-alpine"
...@@ -135,6 +141,10 @@ spec: ...@@ -135,6 +141,10 @@ spec:
port: "{{ .Values.service.name }}-redis" port: "{{ .Values.service.name }}-redis"
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
resources:
requests:
cpu: 100m
memory: 1Gi
# Fetcher Container # Fetcher Container
- name: {{ .Chart.Name }}-fetcher - name: {{ .Chart.Name }}-fetcher
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
...@@ -155,4 +165,8 @@ spec: ...@@ -155,4 +165,8 @@ spec:
- /tmp/fetcher - /tmp/fetcher
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
resources:
requests:
cpu: 500m
memory: 100m
{{- end -}} {{- end -}}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment