Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Mapper Service
Commits
779c928b
Commit
779c928b
authored
Sep 13, 2021
by
Jonas Waeber
Browse files
Add env variable.
Add resource limits.
parent
cc12b3c5
Pipeline
#32372
passed with stages
in 3 minutes and 33 seconds
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
helm-charts/helm-values/di-mapper-prod.yml
View file @
779c928b
...
...
@@ -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
helm-charts/helm-values/di-mapper-stage.yml
View file @
779c928b
...
...
@@ -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
helm-charts/helm-values/di-mapper-test.yml
View file @
779c928b
...
...
@@ -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
helm-charts/templates/deployment.yaml
View file @
779c928b
...
...
@@ -5,23 +5,31 @@ metadata:
name
:
"
{{
.Values.deploymentName
}}-deployment"
namespace
:
memobase
labels
:
jobType
:
"
import-process-
deployment
"
app
:
{{
.Values.
deployment
Name
}}
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
}}"
...
...
helm-charts/values.yaml
View file @
779c928b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment