job.yaml 735 Bytes
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1
2
3
apiVersion: batch/v1
kind: Job
metadata:
Lionel Walter's avatar
Lionel Walter committed
4
  name: "{{ .Values.processId }}-{{ .Values.jobName }}"
Jonas Waeber's avatar
Jonas Waeber committed
5
6
7
8
9
10
11
12
13
  namespace: memobase
  labels:
    institutionId: "{{ .Values.institutionId }}"
    recordSetId: "{{ .Values.recordSetId }}"
    jobType: "import-job"
spec:
  template:
    spec:
      containers:
Lionel Walter's avatar
Lionel Walter committed
14
      - name: "{{ .Values.processId }}-{{ .Values.jobName }}"
Jonas Waeber's avatar
Jonas Waeber committed
15
16
17
18
19
20
21
        image: "{{ .Values.registry }}/{{ .Values.image }}:{{ .Values.tag }}"
        envFrom:
        - secretRef:
            name: "{{ .Values.sftpConfigs }}"
        - configMapRef:
            name: "{{ .Values.kafkaConfigs }}"
        - configMapRef:
Lionel Walter's avatar
Lionel Walter committed
22
            name: "{{ .Values.processId }}-{{ .Values.jobName }}-app-config"
Jonas Waeber's avatar
Jonas Waeber committed
23
24
      restartPolicy: Never
  backoffLimit: 0