deployment.yml 1.37 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: apps/v1
kind: Deployment
metadata:
  name: pp-rico2edmtransfromer
  namespace: memobase
  labels:
    app: pp-rico-2-edm-transfromer-app
spec:
  selector:
    matchLabels:
      app: pp-rico-2-edm-transfromer-app
  replicas: 1
  template:
    metadata:
      labels:
        app: pp-rico-2-edm-transfromer-app
        tier: web
    spec:
      containers:
        - name: pp-rico2edmtransfromer-container
          image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/postprocessing/rico-edm-transformer:latest
          imagePullPolicy: Always
          command: [ "java" ]
          args: [ "-Xmx128m", "-Xmx256m", "-jar", "/app/app.jar" ]
          resources:
            requests:
              cpu: "0.2"
              memory: "128Mi"
            limits:
              cpu: "0.4"
              memory: "256Mi"
          env:
            - name: JOB_ID
34
              value: rico-2-edm-transfromer
35
36
37
38
39
40
41
            - name: KAFKA_BOOTSTRAP_SERVERS
              value: mb-ka1.memobase.unibas.ch:9092,mb-ka2.memobase.unibas.ch:9092,mb-ka3.memobase.unibas.ch:9092
            - name: APPLICATION_ID
              value: rico-2-edm-transfromer
            - name: TOPIC_IN
              value: fedora-output-json-records
            - name: TOPIC_OUT
42
              value: edm-es-records
43
44
45
            - name: TOPIC_PROCESS
              value: postprocessing-reporting
      restartPolicy: Always