forked from minasys/dcus-2018-hol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kube-deployment.yml
82 lines (79 loc) · 1.35 KB
/
kube-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
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
77
78
79
80
81
82
---
apiVersion: v1
kind: Service
metadata:
labels:
app: movieplex7
name: movieplex7
spec:
type: NodePort
ports:
- name: movieplex7
port: 8080
nodePort: 30088
selector:
app: movieplex7
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: movieplex7
labels:
app: movieplex7
spec:
selector:
matchLabels:
app: movieplex7
replicas: 1
template:
metadata:
labels:
app: movieplex7
spec:
containers:
- name: movieplex7
image: <DTR HOSTNAME>/admin/movieplex7-tomee:latest
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
labels:
app: react-client
name: react-client
spec:
type: NodePort
ports:
-
name: react-client
port: 80
nodePort: 30080
selector:
app: react-client
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: react-client
labels:
app: react-client
spec:
selector:
matchLabels:
app: react-client
replicas: 1
template:
metadata:
labels:
app: react-client
spec:
containers:
- name: react-client
image: <DTR HOSTNAME>/admin/react-client:latest
env:
- name: API_HOST
value: <UCP HOSTNAME>:30088
ports:
- containerPort: 80
name: react-client