Commit b273e3c9 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix deployments and config values

parent 5861e17b
Pipeline #33359 passed with stages
in 3 minutes and 32 seconds
deploymentName: di-table-data-transform-prod-deployment deploymentName: di-table-data-transform-prod
applicationId: di-table-data-transform-prod-app
kafkaConfigs: prod-kafka-bootstrap-servers kafkaConfigs: prod-kafka-bootstrap-servers
sftpConfigs: internal-sftp-config
inputTopicName: mb-di-data-transform-prod inputTopicName: mb-di-data-transform-prod
outputTopicName: mb-di-mapper-prod outputTopicName: mb-di-mapper-prod
reportingTopicName: mb-di-reporting-prod reportingTopicName: mb-di-reporting-prod
k8sEnvironment: prod
\ No newline at end of file
deploymentName: di-table-data-transform-stage-deployment deploymentName: di-table-data-transform-stage
applicationId: di-table-data-transform-stage-app
kafkaConfigs: prod-kafka-bootstrap-servers kafkaConfigs: prod-kafka-bootstrap-servers
sftpConfigs: internal-sftp-config
inputTopicName: mb-di-data-transform-stage inputTopicName: mb-di-data-transform-stage
outputTopicName: mb-di-mapper-stage outputTopicName: mb-di-mapper-stage
reportingTopicName: mb-di-reporting-stage reportingTopicName: mb-di-reporting-stage
k8sEnvironment: stage
\ No newline at end of file
deploymentName: di-table-data-transform-test-deployment deploymentName: di-table-data-transform-test
applicationId: di-table-data-transform-test-app
kafkaConfigs: test-kafka-bootstrap-servers kafkaConfigs: test-kafka-bootstrap-servers
sftpConfigs: internal-sftp-config
inputTopicName: mb-di-data-transform-prod inputTopicName: mb-di-data-transform-prod
outputTopicName: mb-di-mapper-prod outputTopicName: mb-di-mapper-prod
reportingTopicName: mb-di-reporting-prod reportingTopicName: mb-di-reporting-prod
k8sEnvironment: test
\ No newline at end of file
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: "{{ .Values.deploymentName }}-config" name: "{{ .Values.deploymentName }}-config"
namespace: memobase namespace: memobase
data: data:
APPLICATION_ID: {{ .Values.applicationId }} APPLICATION_ID: {{ .Values.deploymentName }}
REPORTING_STEP_NAME: "{{ .Values.reportingStepName }}" REPORTING_STEP_NAME: "{{ .Values.reportingStepName }}"
TOPIC_IN: {{ .Values.inputTopicName }} TOPIC_IN: {{ .Values.inputTopicName }}
TOPIC_OUT: {{ .Values.outputTopicName }} TOPIC_OUT: {{ .Values.outputTopicName }}
......
...@@ -11,7 +11,7 @@ spec: ...@@ -11,7 +11,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: {{ .Values.deploymentName }} app: {{ .Values.deploymentName }}
replicas: 1 replicas: {{ .Values.k8sReplicas }}
template: template:
metadata: metadata:
labels: labels:
...@@ -24,6 +24,13 @@ spec: ...@@ -24,6 +24,13 @@ spec:
- 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:
- secretRef: - secretRef:
name: "{{ .Values.sftpConfigs }}" name: "{{ .Values.sftpConfigs }}"
......
...@@ -3,10 +3,16 @@ image: "memoriav/memobase-2020/services/import-process/table-data-transform" ...@@ -3,10 +3,16 @@ image: "memoriav/memobase-2020/services/import-process/table-data-transform"
tag: "latest" tag: "latest"
deploymentName: placeholder deploymentName: placeholder
applicationId: placeholder
k8sEnvironment: placeholder
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
kafkaConfigs: placeholder kafkaConfigs: placeholder
sftpConfigs: placeholder sftpConfigs: internal-sftp-config
reportingStepName: 02-table-data-transform reportingStepName: 02-table-data-transform
......
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