-
Notifications
You must be signed in to change notification settings - Fork 0
/
frontend.yml
63 lines (63 loc) · 1.22 KB
/
frontend.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
apiVersion: v1
kind: Namespace
metadata:
name: sayonika
---
apiVersion: v1
kind: Secret
metadata:
name: frontend-secrets
namespace: sayonika
data:
# Please fill this appropriately before deploying this else you're fucked
recaptcha_key: ''
---
apiVersion: v1
kind: Service
metadata:
name: frontend
namespace: sayonika
spec:
ports:
- port: 8080
name: frontend-ext
protocol: TCP
selector:
app: sayonika
tier: frontend
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: sayonika
tier: frontend
name: frontend
namespace: sayonika
spec:
selector:
matchLabels:
app: sayonika
replicas: 2
template:
metadata:
labels:
app: sayonika
tier: frontend
spec:
containers:
- image: sayonika/frontend:beta
imagePullPolicy: Always
name: frontend
env:
- name: SAYONIKA_RECAPTCHA_KEY
valueFrom:
secretKeyRef:
name: frontend-secrets
key: recaptcha_key
- name: SAYONIKA_API_ORIGIN
value: http://backend:8000
ports:
- containerPort: 8080
name: frontend-ext