blob: fe7c082e0f048923dd1fb8873592017a160fbb3a (
plain)
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
66
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: cas-deployment
labels:
app: cas-app
spec:
replicas: 2
selector:
matchLabels:
app: cas-app
template:
metadata:
labels:
app: cas-app
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: cas-app
topologyKey: "kubernetes.io/hostname"
containers:
- name: cas
image: ghcr.io/cas-4/backend:latest
imagePullPolicy: Always
env:
- name: RUST_LOG
valueFrom:
configMapKeyRef:
name: cas-config
key: RUST_LOG
- name: DATABASE_URL
valueFrom:
configMapKeyRef:
name: cas-config
key: DATABASE_URL
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: cas-secret
key: JWT_SECRET
- name: EXPO_ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: cas-secret
key: EXPO_ACCESS_TOKEN
- name: UNREALSPEECH_TOKEN
valueFrom:
secretKeyRef:
name: cas-secret
key: UNREALSPEECH_TOKEN
- name: ALLOWED_HOST
valueFrom:
configMapKeyRef:
name: cas-config
key: ALLOWED_HOST
- name: AUDIO_PATH
valueFrom:
configMapKeyRef:
name: cas-config
key: AUDIO_PATH
ports:
- containerPort: 8000
restartPolicy: Always
|