-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-app.yaml
76 lines (76 loc) · 1.49 KB
/
front-app.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: v1
kind: Service
metadata:
name: front-app
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
- name: https
port: 443
protocol: TCP
targetPort: 443
selector:
run: front-app
type: LoadBalancer
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: front-app-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: front-app
name: front-app
spec:
replicas: 1
selector:
matchLabels:
run: front-app
strategy:
type: Recreate
template:
metadata:
labels:
run: front-app
spec:
containers:
- env:
- name: APP_DOMAIN_NAME
valueFrom:
configMapKeyRef:
name: openindoor-cm
key: appDomainName
- name: API_DOMAIN_NAME
valueFrom:
configMapKeyRef:
name: openindoor-cm
key: apiDomainName
- name: CERTIFICATE_AUTHORITY
valueFrom:
configMapKeyRef:
name: openindoor-cm
key: certificateAuthority
image: openindoor/front-app:0.0.0
name: front-app
ports:
- containerPort: 80
- containerPort: 443
volumeMounts:
- mountPath: /data
name: front-app-storage
volumes:
- name: front-app-storage
persistentVolumeClaim:
claimName: front-app-pvc