deployment.yml 1.8 KB
Newer Older
1
2
3
apiVersion: apps/v1
kind: Deployment
metadata:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
4
  name: pp-media-converter-deployment
5
6
  namespace: memobase
  labels:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
7
    app: pp-media-converter-app
8
9
10
spec:
  selector:
    matchLabels:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
11
      app: pp-media-converter-app
12
13
14
15
  replicas: 1
  template:
    metadata:
      labels:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
16
17
        app: pp-media-converter-app
        tier: postprocessing
18
19
    spec:
      containers:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
20
        - name: pp-media-converter-container
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
21
22
          image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/postprocessing/media-converter:latest
          imagePullPolicy: Always
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
23
24
          command: [ "java" ]
          args: [ "-Xms128m", "-Xmx10g", "-jar", "/app/app.jar" ]
25
          resources:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
26
27
28
29
30
31
            requests:
              cpu: "0.2"
              memory: "1Gi"
            limits:
              cpu: "1"
              memory: "11Gi"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
32
          volumeMounts:
33
            - name: media-volume
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
34
              mountPath: /data
35
36
37
          envFrom:
            - configMapRef:
                name: "prod-kafka-bootstrap-servers"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
38
39
40
          env:
            - name: JOB_ID
              value: media-converter
41
42
            - name: AUDIO_SNIPPET_DURATION
              value: "30"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
43
44
            - name: EXTERNAL_BASE_URL
              value: "https://memobase.ch/"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
45
            - name: CLIENT_ID
46
47
              value: media-converter-client
            - name: GROUP_ID
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
48
49
              value: media-converter
            - name: TOPIC_IN
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
50
              value: fedora-output-json-records
51
            - name: TOPIC_PROCESS
52
              value: import-process-reporting
53
54
            - name: MEDIA_FOLDER_ROOT_PATH
              value: "/data"
55
            - name: DISTRIBUTOR_URL
56
              value: "http://mb-wf2.memobase.unibas.ch:3000"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
57

58
59
      restartPolicy: Always
      volumes:
60
        - name: media-volume
61
          persistentVolumeClaim:
62
            claimName: media-volume-claim