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

Update deployment names and labels

parent 6d5d7df7
Pipeline #45578 passed with stages
in 2 minutes and 55 seconds
deploymentName: di-mapper-prod
kafkaConfigs: prod-kafka-bootstrap-servers
applicationId: di-mapper-prod-app
inputTopicName: mb-di-mapper-prod
outputTopicName: mb-di-media-linker-prod
reportingTopicName: mb-di-reporting-prod
......
deploymentName: di-mapper-stage
kafkaConfigs: prod-kafka-bootstrap-servers
applicationId: di-mapper-stage-app
inputTopicName: mb-di-mapper-stage
outputTopicName: mb-di-media-linker-stage
reportingTopicName: mb-di-reporting-stage
......
deploymentName: di-mapper-test
kafkaConfigs: test-kafka-bootstrap-servers
applicationId: di-mapper-test-app
inputTopicName: mb-di-mapper-prod
outputTopicName: mb-di-media-linker-prod
reportingTopicName: mb-di-reporting-prod
......
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.deploymentName }}-config"
namespace: memobase
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-config"
namespace: "{{ .Values.k8sNamespace }}"
labels:
app: "{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
data:
APPLICATION_ID: {{ .Values.applicationId }}
SERVICE_CONFIG_TOPIC: {{ .Values.configTopicName }}
REPORTING_STEP_NAME: {{ .Values.reportingStepName }}
TOPIC_IN: {{ .Values.inputTopicName }}
TOPIC_OUT: {{ .Values.outputTopicName }}
TOPIC_PROCESS: {{ .Values.reportingTopicName }}
\ No newline at end of file
APPLICATION_ID: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}"
SERVICE_CONFIG_TOPIC: "{{ .Values.configTopicName }}"
REPORTING_STEP_NAME: "{{ .Values.reportingStepName }}"
TOPIC_IN: "{{ .Values.inputTopicName }}"
TOPIC_OUT: "{{ .Values.outputTopicName }}"
TOPIC_PROCESS: "{{ .Values.reportingTopicName }}"
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Values.deploymentName }}-deployment"
namespace: memobase
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}"
namespace: "{{ .Values.k8sNamespace }}"
labels:
app: {{ .Values.deploymentName }}
environment: {{.Values.k8sEnvironment }}
group: "documents-import"
app: "{{ .Values.k8sName }}"
environment: "{{ .Values.k8sEnvironment }}"
group: "{{ .Values.k8sGroupName }}"
spec:
selector:
matchLabels:
app: {{ .Values.deploymentName }}
app: "{{ .Values.k8sName }}"
environment: "{{ .Values.k8sEnvironment }}"
group: "{{ .Values.k8sGroupName }}"
replicas: {{ .Values.k8sReplicas }}
template:
metadata:
labels:
app: {{ .Values.deploymentName }}
environment: {{.Values.k8sEnvironment }}
group: "documents-import"
app: "{{ .Values.k8sName }}"
environment: "{{ .Values.k8sEnvironment }}"
group: "{{ .Values.k8sGroupName }}"
logging: "{{ .Values.k8sLogging }}"
spec:
restartPolicy: Always
containers:
- name: "{{ .Values.deploymentName }}-container"
- name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-container"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
resources:
......@@ -36,4 +38,4 @@ spec:
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
- configMapRef:
name: "{{ .Values.deploymentName }}-config"
\ No newline at end of file
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-config"
\ No newline at end of file
......@@ -2,6 +2,12 @@ registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/mapper-service"
tag: "latest"
k8sName: mapper-service
k8sNamespace: memobase
k8sGroupId: di
k8sGroupName: documents-import
k8sLogging: java
k8sEnvironment: placeholder
k8sReplicas: 1
k8sRequestsCpu: "0.1"
......@@ -10,8 +16,6 @@ k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
kafkaConfigs: placeholder
deploymentName: placeholder
applicationId: placeholder
inputTopicName: placeholder
outputTopicName: placeholder
reportingTopicName: 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