Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

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