~xdavidwu/flux

ref: 73f7ffc4937bec06159f8935c6902a1cad8ea486 flux/applications/sourcehut/deployment-paste.yaml -rw-r--r-- 814 bytes
73f7ffc4Pinghao Wu sourcehut: paste: add api a month ago
                                                                                
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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: paste
spec:
  replicas: 1
  selector:
    matchLabels:
      component: paste
  template:
    metadata:
      labels:
        component: paste
    spec:
      containers:
        - name: main
          image: ghcr.io/xdavidwu/c/pastesrht:3534
          volumeMounts:
            - name: secrets
              mountPath: /etc/sr.ht/config.ini
              subPath: config.ini
        - name: api
          image: ghcr.io/xdavidwu/c/pastesrht:3534
          command:
            - /usr/bin/paste.sr.ht-api
            - pastesrht.app:app
          volumeMounts:
            - name: secrets
              mountPath: /etc/sr.ht/config.ini
              subPath: config.ini
      volumes:
        - name: secrets
          secret:
            secretName: secrets