Commit 8fd6dee6 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add resource limits.

Rename env to k8sEnvironment.
parent effeabba
Pipeline #32364 passed with stages
in 3 minutes and 31 seconds
......@@ -5,4 +5,4 @@ inputTopicName: mb-di-reporting-prod
outputTopicName: mb-di-processed-reporting-prod
reportingTopicName: none
env: prod
\ No newline at end of file
k8sEnvironment: prod
\ No newline at end of file
......@@ -5,4 +5,4 @@ inputTopicName: mb-di-reporting-stage
outputTopicName: mb-di-processed-reporting-stage
reportingTopicName: none
env: stage
\ No newline at end of file
k8sEnvironment: stage
\ No newline at end of file
......@@ -5,4 +5,4 @@ inputTopicName: mb-di-reporting-prod
outputTopicName: mb-di-processed-reporting-prod
reportingTopicName: none
env: test
k8sEnvironment: test
......@@ -10,18 +10,25 @@ spec:
selector:
matchLabels:
app: {{ .Values.deploymentName }}
replicas: 3
replicas: {{ .Values.k8sReplicas }}
template:
metadata:
labels:
app: {{ .Values.deploymentName }}
environment: {{ .Values.env }}
environment: {{ .Values.k8sEnvironment }}
spec:
restartPolicy: Always
containers:
- name: "{{ .Values.deploymentName }}-container"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
resources:
requests:
cpu: "{{ .Values.k8sRequestsCpu }}"
memory: "{{ .Values.k8sRequestsMemory }}"
limits:
cpu: "{{ .Values.k8sLimitsCpu }}"
memory: "{{ .Values.k8sLimitsMemory }}"
envFrom:
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
......
......@@ -2,11 +2,16 @@ registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/reports-processor"
tag: "latest"
k8sEnvironment: placeholder
k8sReplicas: 3
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
kafkaConfigs: prod-kafka-bootstrap-servers
deploymentName: ip-reports-processor
applicationId: ip-reports-processor
inputTopicName: import-process-reporting
outputTopicName: import-process-processed-reporting
reportingTopicName: none
env: placeholder
\ No newline at end of file
reportingTopicName: none
\ No newline at end of file
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