job.yml 1.26 KB
Newer Older
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
1
2
3
apiVersion: batch/v1
kind: Job
metadata:
4
  name: dd-marker-test
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
5
6
  namespace: memobase
  labels:
7
    app: dd-marker-test-app
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
8
9
10
11
spec:
  template:
    metadata:
      labels:
12
13
14
        app: dd-marker-test-app
        group: documents-delete
        environment: test
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
15
16
    spec:
      containers:
17
        - name: dd-marker-test-container
18
19
20
21
22
23
24
25
26
          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>"
          ]
27
          image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/deletion-components/import-process-delete:latest
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
28
          imagePullPolicy: Always
29
30
          envFrom:
            - configMapRef:
31
              - name: "test-kafka-bootstrap-servers"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
32
33
          env:
            - name: CLIENT_ID
34
              value: dd-marker-test
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
35
            - name: TOPIC_IN
36
              value: mb-di-transactions-records-prod
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
37
            - name: TOPIC_OUT
38
              value: mb-dd-deletes-prod
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
39
            - name: POLL_TIMEOUT
40
              value: "20000"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
41
42
      restartPolicy: Never
  backoffLimit: 1
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
43