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

imageserver-deployment.yml 1.31 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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cantaloupe-deployment
  namespace: memobase
  labels:
    app: imageserver-app
spec:
  selector:
    matchLabels:
      app: imageserver-app
  replicas: 1
  template:
    metadata:
      labels:
        app: imageserver-app
        tier: web
    spec:
      containers:
          - name: cantaloupe-container
            image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/cantaloupe-docker:4.1.5-jp2
            ports:
              - containerPort: 8182
                name: http
                protocol: TCP
26
27
28
29
30
31
32
            resources:
                requests:
                    cpu: "0.5"
                    memory: "1Gi"
                limits:
                    cpu: "2"
                    memory: "4Gi"
33
34
            imagePullPolicy: Always
            volumeMounts:
35
              - name: media-volume
36
37
38
                mountPath: /home/cantaloupe/images
            env:
              - name: CACHE_SERVER_DERIVATIVE_ENABLED
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
39
                value: 'true'
40
              - name: CACHE_SERVER_DERIVATIVE
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
41
                value: 'RedisCache'
42
              - name: REDISCACHE_HOST
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
43
                value: 'redis-service'
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
44
      restartPolicy: Always
45
      volumes:
46
          - name: media-volume
47
            persistentVolumeClaim:
48
                claimName: media-volume-claim