Commit f6e57b46 authored by Matthias's avatar Matthias
Browse files

adapt helm charts to new workflow

parent cf9fa72a
Pipeline #14792 passed with stages
in 8 minutes and 42 seconds
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: "{{ .Values.processId }}-{{ .Values.jobName }}-config" name: "{{ .Values.deploymentName }}-config"
namespace: memobase namespace: memobase
data: data:
APPLICATION_ID: "{{ .Values.processId }}-{{ .Values.jobName }}" APPLICATION_ID: {{ .Values.applicationId }}
INSTITUTION_ID: "{{ .Values.institutionId }}" TOPIC_IN: {{ .Values.inputTopicName }}
RECORD_SET_ID: "{{ .Values.recordSetId }}" TOPIC_OUT: {{ .Values.outputTopicName }}
TOPIC_IN: "{{ .Values.processId }}-{{ .Values.lastJobName }}" TOPIC_PROCESS: {{ .Values.reportingTopicName }}
TOPIC_OUT: "{{ .Values.processId }}-{{ .Values.jobName }}" \ No newline at end of file
TOPIC_PROCESS: "{{ .Values.processId }}-{{ .Values.jobName }}-reporting"
INACCESSIBLE_MEDIAHOSTS: "{{ .Values.inaccessibleMediahosts }}"
INDEXER_HOST: "{{ .Values.indexerHost }}"
INDEXER_CONNECT_TIMEOUT_MS: "{{ .Values.indexerConnectTimeoutMs }}"
INDEXER_READ_TIMEOUT_MS: "{{ .Values.indexerReadTimeoutMs }}"
apiVersion: batch/v1 apiVersion: apps/v1
kind: Job kind: Deployment
metadata: metadata:
name: "{{ .Values.processId }}-{{ .Values.jobName }}" name: {{ .Values.deploymentName }}
namespace: memobase namespace: memobase
labels: labels:
institutionId: "{{ .Values.institutionId }}" jobType: "import-process-deployment"
recordSetId: "{{ .Values.recordSetId }}"
jobType: "import-job"
spec: spec:
selector:
matchLabels:
app: {{ .Values.deploymentName }}
replicas: 1
template: template:
metadata:
labels:
app: {{ .Values.deploymentName }}
tier: import-process
spec: spec:
restartPolicy: Always
containers: containers:
- name: "{{ .Values.processId }}-{{ .Values.jobName }}" - name: "{{ .Values.deploymentName }}-container"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}" image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
envFrom: envFrom:
- configMapRef: - configMapRef:
name: "{{ .Values.kafkaConfigs }}" name: "{{ .Values.kafkaConfigs }}"
- configMapRef: - configMapRef:
name: "{{ .Values.processId }}-{{ .Values.jobName }}-config" name: "{{ .Values.deploymentName }}-config"
restartPolicy: Never \ No newline at end of file
backoffLimit: 0
...@@ -7,19 +7,12 @@ registry: "cr.gitlab.switch.ch" ...@@ -7,19 +7,12 @@ registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/media-metadata-extractor" image: "memoriav/memobase-2020/services/import-process/media-metadata-extractor"
tag: "latest" tag: "latest"
lastJobName: media-linker
kafkaConfigs: prod-kafka-bootstrap-servers kafkaConfigs: prod-kafka-bootstrap-servers
inaccessibleMediahosts: 'youtu.be,youtube.com,vimeo.com,srf.ch' inaccessibleMediahosts: 'youtu.be,youtube.com,vimeo.com,srf.ch'
indexerHost: 'http://media-indexer-service:8082' indexerHost: 'http://media-indexer-service:8082'
indexerConnectTimeoutMs: 4000 indexerConnectTimeoutMs: 4000
indexerReadTimeoutMs: 240000 indexerReadTimeoutMs: 240000
############################################ inputTopicName: import-process-media-linker
## Values below should be defined via the # outputTopicName: import-process-media-data-extractor
## User Interface (Drupal) # reportingTopicName: import-process-reporting
############################################
jobName: media-metadata-extractor
processId: p0001
institutionId: placeholder
recordSetId: placeholder
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