This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.json
106 lines (106 loc) · 2.52 KB
/
template.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"apiVersion": "template.openshift.io/v1",
"kind": "Template",
"metadata": {
"name": "fruit-crud-app",
"annotations": {
"iconClass": "icon-node",
"tags": "nodejs, crud",
"openshift.io/display-name": "Fruit CRUD Application",
"openshift.io/provider-display-name": "Red Hat, Inc.",
"openshift.io/documentation-url": "https://github.com/integr8ly/walkthrough-applications.git",
"description": "Basic CRUD application for fruit"
}
},
"objects": [
{
"kind": "DeploymentConfig",
"apiVersion": "apps.openshift.io/v1",
"metadata": {
"name": "crud-app",
"labels": {
"app": "crud-app"
}
},
"spec": {
"replicas": 1,
"revisionHistoryLimit": 10,
"test": false,
"selector": {
"app": "crud-app"
},
"template": {
"metadata": {
"labels": {
"app": "crud-app"
}
},
"spec": {
"containers": [
{
"name": "crud-app",
"image": "quay.io/integreatly/fruit-crud-app:1.0.1",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
],
"resources": {
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {
},
"schedulerName": "default-scheduler"
}
}
}
},
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "crud-app"
},
"spec": {
"ports": [
{
"protocol": "TCP",
"port": 8080,
"targetPort": 8080
}
],
"selector": {
"app": "crud-app"
}
}
},
{
"kind": "Route",
"apiVersion": "route.openshift.io/v1",
"metadata": {
"name": "crud-app"
},
"spec": {
"to": {
"kind": "Service",
"name": "crud-app"
},
"port": {
"targetPort": 8080
},
"tls": {
"termination": "edge"
},
"wildcardPolicy": "None"
}
}
]
}