Commit 2ab59b9a authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Rename env to k8sEnvironment in chart.

Add resource limitations.
parent 2468c983
Pipeline #32360 passed with stages
in 4 minutes and 4 seconds
......@@ -9,4 +9,4 @@ reportingTopic: mb-di-reporting-stage
reportingStepName: RS-04.01-indexing-record-sets
env: stage
\ No newline at end of file
k8sEnvironment: stage
\ No newline at end of file
......@@ -9,4 +9,4 @@ reportingTopic: mb-di-reporting-prod
reportingStepName: RS-04.01-indexing-record-sets
env: test
\ No newline at end of file
k8sEnvironment: test
\ No newline at end of file
......@@ -14,12 +14,19 @@ spec:
metadata:
labels:
app: "{{ .Values.deploymentName }}-deployment"
environment: {{ .Values.env }}
environment: {{ .Values.k8sEnvironment }}
spec:
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 }}"
......
......@@ -3,11 +3,17 @@ registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/elastic-services/elastic-bulk-action-service"
tag: "latest"
k8sEnvironment: placeholder
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
deploymentName: placeholder
kafkaConfigs: placeholder
elasticConfigs: placeholder
elasticIndexConfigMap: placeholder
topicName: placeholder
reportingTopic: placeholder
reportingStepName: placeholder
env: placeholder
\ No newline at end of file
reportingStepName: 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