-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
44 lines (44 loc) · 1.21 KB
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: deployment-redline-api
labels:
app: redline-api
spec:
replicas: 2
selector:
matchLabels:
app: redline-api
template:
metadata:
labels:
app: redline-api
spec:
containers:
- name: redline-api
image: ghcr.io/sombriks/redline/redline-api:2024.09.05-116bd55
ports:
- containerPort: 3000
env:
- name: NODE_ENV
value: production
- name: PG_CONNECTION_URL
valueFrom:
configMapKeyRef:
name: config-map-redline-api
key: PG_CONNECTION_URL
- name: EMAIL_API_URL
valueFrom:
configMapKeyRef:
name: config-map-redline-api
key: EMAIL_API_URL
- name: EMAIL_API_USERNAME
valueFrom:
configMapKeyRef:
name: config-map-redline-api
key: EMAIL_API_USERNAME
- name: EMAIL_API_PASSWORD
valueFrom:
configMapKeyRef:
name: config-map-redline-api
key: EMAIL_API_PASSWORD