-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (49 loc) · 1.01 KB
/
Dockerfile
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
apiVersion: v1
kind: List
items:
- kind: Deployment
apiVersion: apps/v1
metadata:
name: fruit-shop
spec:
replicas: 1
selector:
matchLabels:
name: fruit-shop
template:
metadata:
labels:
name: fruit-shop
spec:
containers:
- name: fruit-shop
image: quay.io/sgahlot/mongo-quickstart:1.1.0-SNAPSHOT
imagePullPolicy: Always
ports:
- containerPort: 8080
protocol: TCP
- kind: Service
apiVersion: v1
metadata:
name: fruit-shop
labels:
name: fruit-shop
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
name: fruit-shop
- kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: fruit-shop
labels:
name: fruit-shop
spec:
port:
targetPort: 8080
to:
kind: Service
name: fruit-shop