-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkube-manifest.yml
67 lines (67 loc) · 1.33 KB
/
kube-manifest.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
64
65
66
67
apiVersion: apps/v1
kind: Deployment
metadata:
name: scoreboard-live
namespace: default
spec:
replicas: 1
selector:
matchLabels:
name: scoreboard-live
template:
metadata:
labels:
name: scoreboard-live
spec:
restartPolicy: Always
containers:
- name: frontend
image: alex4108/scoreboard-frontend:GIT_SHA
env:
- name: BACKEND_HOST
value: scoreboard-live-backend.default.svc.cluster.local
ports:
- containerPort: 80
protocol: TCP
- name: backend
image: alex4108/scoreboard-backend:GIT_SHA
env:
- name: mongoConnectionString
valueFrom:
secretKeyRef:
name: mongodb-live
key: connection_string
optional: false
- name: corsOrigin
value: "*"
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: scoreboard-live
namespace: default
spec:
selector:
name: scoreboard-live
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: scoreboard-live-backend
namespace: default
spec:
selector:
name: scoreboard-live
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: ClusterIP