-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeployment.yaml
More file actions
56 lines (54 loc) · 996 Bytes
/
deployment.yaml
File metadata and controls
56 lines (54 loc) · 996 Bytes
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
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: sise-deploy
namespace: rhce-consulting-vms
spec:
replicas: 2
selector:
matchLabels:
app: sise
template:
metadata:
labels:
app: sise
spec:
containers:
- name: sise
image: quay.io/openshiftlabs/simpleservice:0.5.0
ports:
- containerPort: 9876
env:
- name: SIMPLE_SERVICE_VERSION
value: "0.9"
---
apiVersion: v1
kind: Service
metadata:
name: sise-svc
namespace: rhce-consulting-vms
spec:
selector:
app: sise
ports:
- protocol: TCP
port: 80
targetPort: 9876
type: ClusterIP
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: simple-service
namespace: rhce-consulting-vms
spec:
host: simple-service.apps.ocp2.redhat-workshop.in
path: /info
port:
targetPort: 9876
to:
kind: Service
name: sise-svc
weight: 100
wildcardPolicy: None