-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdeploy.yml
More file actions
61 lines (61 loc) · 1.1 KB
/
deploy.yml
File metadata and controls
61 lines (61 loc) · 1.1 KB
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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-app
annotations:
image.openshift.io/triggers: |-
[
{
"from": {
"kind": "ImageStreamTag",
"name": "sample-app:latest"
},
"fieldPath": "spec.template.spec.containers[0].image"
}
]
spec:
selector:
matchLabels:
app: sample-app
template:
metadata:
labels:
app: sample-app
spec:
containers:
- name: main
image: sample-app:latest
envFrom:
- secretRef:
name: vcap-services
readinessProbe:
httpGet:
path: /actuator/health
port: 8080
initialDelaySeconds: 60
---
apiVersion: v1
kind: Service
metadata:
name: sample-app
spec:
type: ClusterIP
selector:
app: sample-app
ports:
- name: http
port: 8080
targetPort: 8080
protocol: TCP
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: sample-app
spec:
port:
targetPort: http
to:
kind: Service
name: sample-app