~xdavidwu/flux

ref: 420986c95d06514b23ab8f0c0092140096c67972 flux/applications/sourcehut/deployment-paste.yaml -rw-r--r-- 999 bytes
420986c9Pinghao Wu sourcehut: paste: add readinessprobes 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
35
36
37
38
39
40
41
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
          readinessProbe:
            httpGet:
              port: 5011
        - 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
          readinessProbe:
            httpGet:
              port: 5111
              path: /query/api-meta.json
      volumes:
        - name: secrets
          secret:
            secretName: secrets