-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
sudobot-deployment.yml
65 lines (65 loc) · 1.74 KB
/
sudobot-deployment.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: apps/v1
kind: Deployment
metadata:
name: sudobot
spec:
selector:
matchLabels:
app: sudobot
template:
metadata:
labels:
app: sudobot
spec:
volumes:
- name: sudobot-pv
persistentVolumeClaim:
claimName: sudobot-pvc
containers:
- name: sudobot
volumeMounts:
- mountPath: /data
name: sudobot-pv
stdin: true
tty: true
image: ghcr.io/onesoft-sudo/sudobot:latest
resources:
limits:
memory: "2Gi"
cpu: "500m"
ports:
- containerPort: 4000
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: sudobot
key: db_password
- name: DB_URL
value: postgresql://postgres:$(DB_PASSWORD)@$(POSTGRES_SERVICE_SERVICE_HOST):$(POSTGRES_SERVICE_SERVICE_PORT)/sudobot
- name: TOKEN
valueFrom:
secretKeyRef:
name: sudobot
key: discord_token
- name: CLIENT_ID
valueFrom:
secretKeyRef:
name: sudobot
key: client_id
- name: HOME_GUILD_ID
valueFrom:
secretKeyRef:
name: sudobot
key: home_guild_id
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: sudobot
key: jwt_secret
- name: SUDO_ENV
value: production
- name: NODE_ENV
value: production
- name: SUDO_PREFIX
value: /data