Commit 779c928b authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add env variable.

Add resource limits.
parent cc12b3c5
Pipeline #32372 passed with stages
in 3 minutes and 33 seconds
......@@ -4,4 +4,6 @@ applicationId: di-mapper-prod-app
inputTopicName: mb-di-mapper-prod
outputTopicName: mb-di-media-linker-prod
reportingTopicName: mb-di-reporting-prod
configTopicName: mb-di-config-prod
\ No newline at end of file
configTopicName: mb-di-config-prod
k8sEnvironment: prod
\ No newline at end of file
......@@ -4,4 +4,6 @@ applicationId: di-mapper-stage-app
inputTopicName: mb-di-mapper-stage
outputTopicName: mb-di-media-linker-stage
reportingTopicName: mb-di-reporting-stage
configTopicName: mb-di-config-stage
\ No newline at end of file
configTopicName: mb-di-config-stage
k8sEnvironment: stage
\ No newline at end of file
......@@ -5,3 +5,5 @@ inputTopicName: mb-di-mapper-prod
outputTopicName: mb-di-media-linker-prod
reportingTopicName: mb-di-reporting-prod
configTopicName: mb-di-config-prod
k8sEnvironment: test
......@@ -5,23 +5,31 @@ metadata:
name: "{{ .Values.deploymentName }}-deployment"
namespace: memobase
labels:
jobType: "import-process-deployment"
app: {{ .Values.deploymentName }}
spec:
selector:
matchLabels:
app: {{ .Values.deploymentName }}
replicas: 1
replicas: {{ .Values.k8sReplicas }}
template:
metadata:
labels:
app: {{ .Values.deploymentName }}
tier: import-process
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,6 +2,13 @@ registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/mapper-service"
tag: "latest"
k8sEnvironment: placeholder
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
kafkaConfigs: placeholder
deploymentName: placeholder
applicationId: placeholder
......
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