-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-deployment.yaml
42 lines (42 loc) · 1.12 KB
/
api-deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: synergychat-api
name: synergychat-api
spec:
replicas: 1
selector:
matchLabels:
app: synergychat-api
template:
metadata:
labels:
app: synergychat-api
spec:
volumes:
- name: synergychat-api-volume
persistentVolumeClaim:
claimName: synergychat-api-pvc
containers:
- image: lanecwagner/synergychat-api:latest
name: synergychat-api
env:
- name: API_PORT
valueFrom:
configMapKeyRef:
name: synergychat-api-configmap
key: API_PORT
- name: API_DB_FILEPATH
valueFrom:
configMapKeyRef:
name: synergychat-api-configmap
key: API_DB_FILEPATH
- name: CRAWLER_BASE_URL
valueFrom:
configMapKeyRef:
name: synergychat-api-configmap
key: CRAWLER_BASE_URL
volumeMounts:
- name: synergychat-api-volume
mountPath: /persist