/[sudobot]/trunk/kubernetes/sudobot-deployment.yml
ViewVC logotype

Annotation of /trunk/kubernetes/sudobot-deployment.yml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (hide annotations)
Mon Jul 29 17:59:26 2024 UTC (8 months ago) by rakinar2
File size: 1786 byte(s)
chore: add trunk
1 rakinar2 575 apiVersion: apps/v1
2     kind: Deployment
3     metadata:
4     name: sudobot
5     spec:
6     selector:
7     matchLabels:
8     app: sudobot
9     template:
10     metadata:
11     labels:
12     app: sudobot
13     spec:
14     volumes:
15     - name: sudobot-pv
16     persistentVolumeClaim:
17     claimName: sudobot-pvc
18     containers:
19     - name: sudobot
20     volumeMounts:
21     - mountPath: /data
22     name: sudobot-pv
23     stdin: true
24     tty: true
25     image: ghcr.io/onesoft-sudo/sudobot:latest
26     resources:
27     limits:
28     memory: "2Gi"
29     cpu: "500m"
30     ports:
31     - containerPort: 4000
32     env:
33     - name: DB_PASSWORD
34     valueFrom:
35     secretKeyRef:
36     name: sudobot
37     key: db_password
38     - name: DB_URL
39     value: postgresql://postgres:$(DB_PASSWORD)@$(POSTGRES_SERVICE_SERVICE_HOST):$(POSTGRES_SERVICE_SERVICE_PORT)/sudobot
40     - name: TOKEN
41     valueFrom:
42     secretKeyRef:
43     name: sudobot
44     key: discord_token
45     - name: CLIENT_ID
46     valueFrom:
47     secretKeyRef:
48     name: sudobot
49     key: client_id
50     - name: HOME_GUILD_ID
51     valueFrom:
52     secretKeyRef:
53     name: sudobot
54     key: home_guild_id
55     - name: JWT_SECRET
56     valueFrom:
57     secretKeyRef:
58     name: sudobot
59     key: jwt_secret
60     - name: SUDO_ENV
61     value: production
62     - name: NODE_ENV
63     value: production
64     - name: SUDO_PREFIX
65     value: /data

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26