~xdavidwu/flux

ref: 014c17460a8683724cc958c19ffd50942ece2a95 flux/applications/sourcehut/deployment-pages.yaml -rw-r--r-- 954 bytes
014c1746Pinghao Wu sourcehut: mount config by subPath 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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: pages
spec:
  replicas: 1
  selector:
    matchLabels:
      component: pages
  template:
    metadata:
      labels:
        component: pages
    spec:
      containers:
        - name: main
          image: ghcr.io/xdavidwu/c/pagessrht:3533
          volumeMounts:
            - name: secrets
              mountPath: /etc/sr.ht/config.ini
              subPath: config.ini
            - name: data
              mountPath: /srv/pagessrht
          readinessProbe:
            httpGet:
              port: 5112
              path: /query/api-meta.json
      volumes:
        - name: secrets
          secret:
            secretName: secrets
        - name: data
          cephfs:
            monitors:
              - 10.0.3.1:6789
            path: /volumes/_nogroup/pagessrht/c320a1a7-7857-4131-8ea0-2a0646c3113a
            user: pagessrht
            secretRef:
              name: ceph-pages