Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
Fedora Ingest Service
Commits
ff4a52cc
Commit
ff4a52cc
authored
Sep 26, 2020
by
Matthias
Committed by
Thomas Bernhart
Oct 13, 2020
Browse files
deployment-transform
parent
b58ad288
Pipeline
#15502
passed with stages
in 5 minutes and 40 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
helm-charts/templates/app-config.yaml
View file @
ff4a52cc
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
"
{{
.Values.
processId
}}-{{
.Values.job
Name
}}-
app-
config"
name
:
"
{{
.Values.
deployment
Name
}}-config"
namespace
:
memobase
data
:
APP_DIRECTORY
:
"
{{
.Values.appDirectory
}}"
CLIENT_ID
:
"
{{
.Values.processId
}}-{{
.Values.jobName
}}"
TOPIC_IN
:
"
{{
.Values.processId
}}-{{
.Values.lastJobName
}}"
TOPIC_OUT
:
"
{{.Values.processId
}}-{{
.Values.jobName
}}"
TOPIC_PROCESS
:
"
{{
.Values.processId
}}-reporting"
APPLICATION_ID
:
{{
.Values.applicationId
}}
TOPIC_IN
:
{{
.Values.inputTopicName
}}
TOPIC_OUT
:
{{
.Values.outputTopicName
}}
TOPIC_PROCESS
:
{{
.Values.reportingTopicName
}}
helm-charts/templates/
job
.yaml
→
helm-charts/templates/
deployment
.yaml
View file @
ff4a52cc
apiVersion
:
batch
/v1
kind
:
Job
apiVersion
:
apps
/v1
kind
:
Deployment
metadata
:
name
:
"
{{
.Values.
processId
}}-{{
.Values.job
Name
}}
"
name
:
{{
.Values.
deployment
Name
}}
namespace
:
memobase
labels
:
institutionId
:
"
{{
.Values.institutionId
}}"
recordSetId
:
"
{{
.Values.recordSetId
}}"
jobType
:
"
import-job"
jobType
:
"
import-process-deployment"
spec
:
selector
:
matchLabels
:
app
:
{{
.Values.deploymentName
}}
replicas
:
1
template
:
metadata
:
labels
:
app
:
{{
.Values.deploymentName
}}
tier
:
import-process
spec
:
restartPolicy
:
Always
containers
:
-
name
:
"
{{
.Values.
processId
}}-{{
.Values.jobName
}}
"
-
name
:
"
{{
.Values.
deploymentName
}}-container
"
image
:
"
{{
.Values.registry
}}/{{
.Values.image
}}:{{
.Values.tag
}}"
imagePullPolicy
:
Always
envFrom
:
-
secretRef
:
name
:
"
{{
.Values.sftpConfigs
}}"
...
...
@@ -21,6 +29,4 @@ spec:
-
configMapRef
:
name
:
"
{{
.Values.kafkaConfigs
}}"
-
configMapRef
:
name
:
"
{{
.Values.processId
}}-{{
.Values.jobName
}}-app-config"
restartPolicy
:
Never
backoffLimit
:
0
\ No newline at end of file
name
:
"
{{
.Values.deploymentName
}}-config"
\ No newline at end of file
helm-charts/values.yaml
View file @
ff4a52cc
...
...
@@ -3,9 +3,12 @@ registry: "cr.gitlab.switch.ch"
image
:
"
memoriav/memobase-2020/services/import-process/fedora-ingest-service"
tag
:
"
latest"
deploymentName
:
xml-data-transform
## TODO: This needs to be solved differently. This way it is not possible to deploy a replica-set.
## somehow the id needs to be dependent on the pod name?
applicationId
:
xml-data-transform-app
jobName
:
fedora-ingest-service
lastJobName
:
normalization-service
processId
:
p0001
institutionId
:
placeholder
recordSetId
:
placeholder
...
...
@@ -17,4 +20,7 @@ fedoraConfigs: fedora-admin-credentials
## Needs to be set to the directory on the sftp server.
## this is a relative path built like this:
## "./{RECORD_SET_ID}"
appDirectory
:
placeholderValue
\ No newline at end of file
appDirectory
:
placeholderValue
inputTopicName
:
import-process-fedora-ingest
reportingTopicName
:
import-process-reporting
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