summaryrefslogtreecommitdiff
path: root/f3s/wallabag/helm-chart/templates/deployment.yaml
blob: 25dcffdcae5b7c7eff00d3bb42ad1eaf0195e8d2 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
apiVersion: apps/v1
kind: Deployment
metadata:
  name: wallabag
  namespace: services
spec:
  replicas: 1
  selector:
    matchLabels:
      app: wallabag
  template:
    metadata:
      labels:
        app: wallabag
    spec:
      containers:
      - name: wallabag
        image: wallabag/wallabag
        ports:
        - containerPort: 80
        env:
        - name: SYMFONY__ENV__DOMAIN_NAME
          value: "https://bag.f3s.buetow.org"
        volumeMounts:
        - name: wallabag-data
          mountPath: /var/www/wallabag/data
        - name: wallabag-images
          mountPath: /var/www/wallabag/web/assets/images
      volumes:
      - name: wallabag-data
        persistentVolumeClaim:
          claimName: wallabag-data-pvc
      - name: wallabag-images
        persistentVolumeClaim:
          claimName: wallabag-images-pvc
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: wallabag
  name: wallabag-service
  namespace: services
spec:
  ports:
    - name: web
      port: 80
      protocol: TCP
      targetPort: 80
  selector:
    app: wallabag