job.yml 1.24 KB
Newer Older
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
apiVersion: batch/v1
kind: Job
metadata:
  name: import-process-delete
  namespace: memobase
  labels:
    app: import-process-delete-app
spec:
  template:
    metadata:
      labels:
        app: import-process-delete-app
        tier: web
    spec:
      containers:
16
        - name: import-process-delete-container
17
18
19
20
21
22
23
24
25
          args: [ # Customise to match your needs
              "--record-set-filter", "<id>",
              "--record-filter", "<id>",
              "--institution-filter", "<id>",
              "--session-filter", "<id>",
              "--created-after", "<datetime>",
              "--created-before", "<datetime>"
              "<your-session-id>"
          ]
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
26
27
          image: cr.gitlab.switch.ch/memoriav/memobase-2020/utilities/import-process-delete:latest
          imagePullPolicy: Always
28
29
30
          envFrom:
            - configMapRef:
              - name: "prod-kafka-bootstrap-servers"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
31
32
33
34
          env:
            - name: CLIENT_ID
              value: import-process-delete
            - name: TOPIC_IN
35
              value: import-process-transactions-records
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
36
            - name: TOPIC_OUT
37
              value: delete-process-deletes
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
38
            - name: POLL_TIMEOUT
39
              value: "20000"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
40
41
      restartPolicy: Never
  backoffLimit: 1
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
42