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

added scheduler container

parent 6fffa7d6
......@@ -27,6 +27,11 @@ resourcesFetcher:
cpu: 500m
memory: 100M
limits:
resourcesScheduler:
requests:
cpu: 100m
memory: 100M
limits:
resources:
requests:
cpu: 500m
......
......@@ -39,6 +39,11 @@ resourcesFetcher:
cpu: 500m
memory: 100M
limits:
resourcesScheduler:
requests:
cpu: 100m
memory: 100M
limits:
resources:
requests:
cpu: 500m
......
......@@ -40,3 +40,6 @@ resourcesRedis:
resourcesFetcher:
requests:
limits:
resourcesScheduler:
requests:
limits:
......@@ -277,4 +277,31 @@ spec:
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
resources:
{{ toYaml .Values.resourcesFetcher | indent 12 }}
# Scheduler Container
- name: {{ .Chart.Name }}-scheduler
image: {{ template "imagename" . }}
command: ["/bin/sh"]
args: ["-c", "/html/helpers/scheduler.sh"]
volumeMounts:
- name: secrets
mountPath: /html/.env
subPath: env
readOnly: true
imagePullPolicy: {{ .Values.image.pullPolicy }}
livenessProbe:
exec:
command:
- cat
- /tmp/fetcher
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
readinessProbe:
exec:
command:
- cat
- /tmp/fetcher
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
resources:
{{ toYaml .Values.resourcesScheduler | indent 12 }}
{{- end -}}
Supports Markdown
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