Commit 2713e1cb authored by Jonas Waeber's avatar Jonas Waeber
Browse files

update chart

parent f8d2d96a
Pipeline #10600 failed with stages
in 1 minute and 28 seconds
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.processId }}-{{ .Values.jobId }}-app-config"
name: "{{ .Values.deploymentName }}-app-config"
namespace: memobase
data:
JOB_ID: "{{ .Values.jobId }}"
APPLICATION_ID: "{{ .Values.processId }}-{{ .Values.jobId }}-{{ .Values.jobName }}"
INSTITUTION_ID: "{{ .Values.institutionId }}"
RECORD_SET_ID: "{{ .Values.recordSetId }}"
TOPIC_IN: "{{ .Values.processId }}-{{ .Values.lastJobId }}-{{ .Values.lastJobName }}"
TOPIC_OUT: "{{ .Values.processId }}-{{ .Values.jobId }}-{{ .Values.jobName }}"
TOPIC_PROCESS: "{{ .Values.processId }}-reporting"
\ No newline at end of file
APPLICATION_ID: "{{ .Values.deploymentName }}-app"
TOPIC_IN: "{{ .Values.deploymentName }}-input"
TOPIC_OUT: "{{ .Values.deploymentName }}-output"
TOPIC_PROCESS: "{{ .Values.deploymentName }}-reporting"
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Values.deploymentName }}-deployment"
namespace: memobase
labels:
app: "{{ .Values.deploymentName }}-deployment"
spec:
selector:
matchLabels:
app: "{{ .Values.deploymentName }}-deployment"
replicas: 1
template:
metadata:
labels:
app: "{{ .Values.deploymentName }}-deployment"
tier: post-processing
spec:
containers:
- name: "{{ .Values.deploymentName }}-container"
image: "{{.Values.registry}}/{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
envFrom:
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
- configMapRef:
name: "{{ .Values.processId }}-{{ .Values.jobName }}-config"
volumeMounts:
- name: config-volume
mountPath: "/configs/mappings/"
volumes:
- name: config-volume
configMap:
name: "{{ .Values.configMapName }}"
restartPolicy: Always
apiVersion: batch/v1
kind: Job
metadata:
name: "{{ .Values.processId }}-{{ .Values.jobId }}-{{ .Values.jobName }}"
namespace: memobase
labels:
institutionId: "{{ .Values.institutionId }}"
recordSetId: "{{ .Values.recordSetId }}"
jobType: "import-job"
spec:
template:
spec:
containers:
- name: "{{ .Values.processId }}-{{ .Values.jobId }}-{{ .Values.jobName }}"
image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
envFrom:
- configMapRef:
name: "{{ .Values.kafkaConfigs }}"
- configMapRef:
name: "{{ .Values.processId }}-{{ .Values.jobId }}-app-config"
volumeMounts:
- name: config-volume
mountPath: "/configs/mappings/{{ .Values.configFileName }}"
subPath: "{{ .Values.configFileName }}"
volumes:
- name: config-volume
configMap:
name: "{{ .Values.configMapName }}"
restartPolicy: Never
backoffLimit: 0
#image values
registry: "cr.gitlab.switch.ch"
image: "memoriav/memobase-2020/services/import-process/mapper-service"
image: "memoriav/memobase-2020/services/elastic-services/search-doc-service"
tag: "latest"
jobName: mapper-service
processId: p0001
jobId: j0003
lastJobId: j0002
lastJobName: table-data-transform
kafkaConfigs: prod-kafka-bootstrap-servers
institutionId: placeholder
recordSetId: placeholder
# configMapName holds the name of the config with the mappings for the service.
configMapName: placeholder
configFileName: mapping.yml
deploymentName: search-doc-service
configMapName: search-doc-mapping-config
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