helper-deployment.yml 657 Bytes
Newer Older
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: image-helper-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: image-helper-container
            image: nginx
            imagePullPolicy: Always
            volumeMounts:
              - name: image-volume
                mountPath: /data/
      volumes:
          - name: image-volume
            persistentVolumeClaim:
                claimName: imageserver-volume-claim