~xdavidwu/flux

ref: f73447b6de21af917830fee20c1bd0a956b9f55e flux/applications/sourcehut/deployment-todo.yaml -rw-r--r-- 1.3 KiB
f73447b6Pinghao Wu import coredns from kubeadm 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
42
43
44
45
46
47
48
49
50
51
52
53
apiVersion: apps/v1
kind: Deployment
metadata:
  name: todo
spec:
  replicas: 1
  selector:
    matchLabels:
      component: todo
  template:
    metadata:
      labels:
        component: todo
    spec:
      containers:
        - name: main
          image: ghcr.io/xdavidwu/c/todosrht:3535
          volumeMounts:
            - name: secrets
              mountPath: /etc/sr.ht/config.ini
              subPath: config.ini
          readinessProbe:
            httpGet:
              port: 5003
        - name: api
          image: ghcr.io/xdavidwu/c/todosrht:3535
          command:
            - /usr/bin/todo.sr.ht-api
            - todosrht.app:app
          volumeMounts:
            - name: secrets
              mountPath: /etc/sr.ht/config.ini
              subPath: config.ini
          readinessProbe:
            httpGet:
              port: 5103
              path: /query/api-meta.json
        - name: webhooks
          image: ghcr.io/xdavidwu/c/todosrht:3535
          command:
            - /usr/bin/celery
            - -A
            - todosrht.webhooks
            - worker
            - --loglevel=info
          volumeMounts:
            - name: secrets
              mountPath: /etc/sr.ht/config.ini
              subPath: config.ini
      volumes:
        - name: secrets
          secret:
            secretName: secrets