-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathopenshift.yaml
58 lines (57 loc) · 1.1 KB
/
openshift.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
kind: Deployment
apiVersion: apps/v1
metadata:
name: dev-aelm-workshop-23-app
labels:
app: dev-aelm-workshop-23-app
spec:
## TODO: Update to x amount of replica's --> Need high availability
replicas: 0
selector:
matchLabels:
app: dev-aelm-workshop-23-app
template:
metadata:
labels:
app: dev-aelm-workshop-23-app
spec:
containers:
- name: workshop
image: >-
<<TODO>>
imagePullPolicy: Always
ports:
- containerPort: 3000
protocol: TCP
---
kind: Service
apiVersion: v1
metadata:
name: dev-aelm-workshop-23-app
labels:
app: dev-aelm-workshop-23-app
spec:
ports:
- name: 3000-tcp
protocol: TCP
port: 3000
targetPort: 3000
selector:
app: dev-aelm-workshop-23-app
---
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: dev-aelm-workshop-23-app
labels:
app: dev-aelm-workshop-23-app
spec:
to:
kind: Service
name: dev-aelm-workshop-23-app
weight: 100
port:
targetPort: 3000-tcp
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect