forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-build-podsvc.json
56 lines (56 loc) · 1021 Bytes
/
test-build-podsvc.json
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
{
"kind": "Template",
"apiVersion": "v1",
"parameters": [
{
"name": "IMAGE_NAME",
"required": true
}
],
"objects": [
{
"kind":"Pod",
"apiVersion":"v1",
"metadata":{
"name":"build-test-pod",
"labels":{
"name":"build-test-pod"
}
},
"spec":{
"containers":[
{
"name":"test",
"image":"${IMAGE_NAME}",
"readinessProbe": {
"httpGet": {
"port": 8080
}
}
}
],
"dnsPolicy":"ClusterFirst"
}
},
{
"kind": "Service",
"apiVersion":"v1",
"metadata": {
"name":"build-test-svc"
},
"spec": {
"ports": [
{
"name": "8080-tcp",
"protocol": "TCP",
"port": 8080,
"targetPort": 8080
}
],
"selector": {
"name": "build-test-pod"
}
}
}
]
}