Verified Commit e1519059 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

update helm charts

parent 00663a6f
Pipeline #28849 passed with stages
in 3 minutes and 41 seconds
tag: "latest"
k8sGroupId: "di"
k8sGroupName: "documents-import"
k8sEnvironment: "prod"
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
applicationId: di-connector-prod
deploymentName: di-connector-prod
kafkaConfigs: prod-kafka-bootstrap-servers
bootstrapServers: prod-kafka-bootstrap-servers
# This is only the base name!
outputTopic: mb-di-processed
outputTopicPostfix: prod
......@@ -9,5 +20,3 @@ reportingTopic: mb-di-reporting-prod
recordsTransactionsTopic: mb-di-transactions-records-prod
recordSetsTransactionsTopic: mb-gi-transactions-record-sets-prod
institutionsTransactionsTopic: mb-gi-transactions-institutions-prod
k8sEnvironment: prod
tag: "latest"
k8sGroupId: "di"
k8sGroupName: "documents-import"
k8sEnvironment: "stage"
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
applicationId: di-connector-stage
deploymentName: di-connector-stage
kafkaConfigs: prod-kafka-bootstrap-servers
bootstrapServers: prod-kafka-bootstrap-servers
# This is only the base name!
outputTopic: mb-di-processed
outputTopicPostfix: stage
......@@ -9,5 +20,3 @@ reportingTopic: mb-di-reporting-stage
recordsTransactionsTopic: mb-di-transactions-records-stage
recordSetsTransactionsTopic: mb-gi-transactions-record-sets-stage
institutionsTransactionsTopic: mb-gi-transactions-institutions-stage
k8sEnvironment: prod
\ No newline at end of file
tag: "latest"
k8sGroupId: "di"
k8sGroupName: "documents-import"
k8sEnvironment: "test"
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
applicationId: di-connector-test
deploymentName: di-connector-test
kafkaConfigs: test-kafka-bootstrap-servers
bootstrapServers: test-kafka-bootstrap-servers
# This is only the base name!
outputTopic: mb-di-processed
outputTopicPostfix: prod
......@@ -9,5 +20,3 @@ reportingTopic: mb-di-reporting-prod
recordsTransactionsTopic: mb-di-transactions-records-prod
recordSetsTransactionsTopic: mb-gi-transactions-record-sets-prod
institutionsTransactionsTopic: mb-gi-transactions-institutions-prod
k8sEnvironment: test
\ No newline at end of file
tag: "latest"
k8sGroupId: "gi"
k8sGroupName: "group-import"
k8sEnvironment: "prod"
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
applicationId: gi-connector-prod
deploymentName: gi-connector-prod
kafkaConfigs: prod-kafka-bootstrap-servers
bootstrapServers: prod-kafka-bootstrap-servers
# This is only the base name!
outputTopic: mb-gi-processed
outputTopicPostfix: prod
......@@ -9,5 +20,3 @@ reportingTopic: mb-di-reporting-prod
recordsTransactionsTopic: mb-di-transactions-records-prod
recordSetsTransactionsTopic: mb-gi-transactions-record-sets-prod
institutionsTransactionsTopic: mb-gi-transactions-institutions-prod
k8sEnvironment: prod
\ No newline at end of file
tag: "latest"
k8sGroupId: "gi"
k8sGroupName: "group-import"
k8sEnvironment: "stage"
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
applicationId: gi-connector-stage
deploymentName: gi-connector-stage
kafkaConfigs: prod-kafka-bootstrap-servers
bootstrapServers: prod-kafka-bootstrap-servers
# This is only the base name!
outputTopic: mb-gi-processed
outputTopicPostfix: stage
......@@ -9,5 +21,3 @@ reportingTopic: mb-di-reporting-stage
recordsTransactionsTopic: mb-di-transactions-records-stage
recordSetsTransactionsTopic: mb-gi-transactions-record-sets-stage
institutionsTransactionsTopic: mb-gi-transactions-institutions-stage
k8sEnvironment: stage
\ No newline at end of file
tag: "latest"
k8sGroupId: "gi"
k8sGroupName: "group-import"
k8sEnvironment: "test"
k8sReplicas: 1
k8sRequestsCpu: "0.1"
k8sRequestsMemory: "128Mi"
k8sLimitsCpu: "0.5"
k8sLimitsMemory: "512Mi"
applicationId: gi-connector-test
deploymentName: gi-connector-test
kafkaConfigs: test-kafka-bootstrap-servers
bootstrapServers: test-kafka-bootstrap-servers
# This is only the base name!
outputTopic: mb-gi-processed
outputTopicPostfix: prod
......@@ -9,5 +20,3 @@ reportingTopic: mb-di-reporting-prod
recordsTransactionsTopic: mb-di-transactions-records-prod
recordSetsTransactionsTopic: mb-gi-transactions-record-sets-prod
institutionsTransactionsTopic: mb-gi-transactions-institutions-prod
k8sEnvironment: test
\ No newline at end of file
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.deploymentName }}-app-config"
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-config"
namespace: memobase
data:
APPLICATION_ID: "{{ .Values.applicationId }}"
......
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 }}-deployment"
jobType: "import-process-deployment"
spec:
selector:
matchLabels:
app: "{{ .Values.deploymentName }}-deployment"
replicas: 1
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-app"
replicas: {{ .Values.k8sReplicas }}
template:
metadata:
labels:
app: "{{ .Values.deploymentName }}-deployment"
app: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-app"
group: "{{ .Values.k8sGroupName }}"
environment: "{{ .Values.k8sEnvironment }}"
spec:
restartPolicy: Always
containers:
- name: "{{ .Values.deploymentName }}-container"
image: "{{.Values.registry}}/{{ .Values.image }}:{{ .Values.tag }}"
- name: "{{.Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-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 }}"
- configMapRef:
name: "{{ .Values.deploymentName}}-app-config"
restartPolicy: Always
- configMapRef:
name: "{{ .Values.bootstrapServers }}"
- configMapRef:
name: "{{ .Values.k8sGroupId }}-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment }}-config"
############################################
## Values in this section are the same for #
## all jobs #
############################################
#image values
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/postprocessing/import-process-bridge"
tag: "latest"
tag: placeholder
k8sName: connector
k8sNamespace: memobase
k8sGroupId: placeholder
k8sGroupName: placeholder
k8sEnvironment: placeholder
k8sReplicas: placeholder
k8sRequestsCpu: placeholder
k8sRequestsMemory: placeholder
k8sLimitsCpu: placeholder
k8sLimitsMemory: placeholder
applicationId: placeholder
deploymentName: placeholder
kafkaConfigs: placeholder
bootstrapServers: placeholder
outputTopic: placeholder
outputTopicPostfix: placeholder
inputTopic: placeholder
......@@ -17,5 +23,3 @@ reportingTopic: placeholder
recordsTransactionsTopic: placeholder
recordSetsTransactionsTopic: placeholder
institutionsTransactionsTopic: placeholder
k8sEnvironment: 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