Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

deployment.yml 1.5 KB
Newer Older
1
2
3
apiVersion: apps/v1
kind: Deployment
metadata:
4
  name: pp-mediametadatatodb-deployment
5
  namespace: memobase
Matthias's avatar
Matthias committed
6
  labels:
7
    app: pp-mediametadatatodb-app
8
9
10
spec:
  selector:
    matchLabels:
11
      app: pp-mediametadatatodb-app
12
13
14
15
  replicas: 1
  template:
    metadata:
      labels:
16
        app: pp-mediametadatatodb-app
17
18
19
        tier: web
    spec:
      containers:
20
          - name: pp-mediametadatatodb-container
21
            image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/postprocessing/mediametadatatodb:latest
22
23
24
25
26
27
28
29
30
31
32
33
34
35
            env:
              - name: INPUT_TOPIC
                value: 'fedora-output-json-records'
              - name: KAFKA_CONNECTION_RETRIES
                value: '2'
              - name: KAFKA_GROUP_ID
                value: 'medienserverMetadataService'
              - name: LOG_LEVEL
                value: 'INFO'
              - name: MARIADB_CONNECTION_RETRIES
                value: '2'
              - name: MARIADB_DATABASE
                value: 'medienserver'
              - name: MARIADB_HOST
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
36
                value: 'mb-db1.memobase.unibas.ch'
37
38
39
40
41
42
              - name: MARIADB_PORT
                value: '3306'
              - name: REPORTING_TOPIC
                value: 'import-process-reporting'
              - name: URI_BASE
                value: 'file:///data/'
43
            envFrom:
Matthias's avatar
Matthias committed
44
              - configMapRef:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
45
                  name: prod-kafka-bootstrap-servers
46
              - secretRef:
47
                  name: mariadb-mb-db1-medienserver
48
            imagePullPolicy: Always