-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopenshift-cloudforms-template.json
148 lines (147 loc) · 2.92 KB
/
openshift-cloudforms-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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"kind": "Template",
"apiVersion": "v1",
"metadata":
{
"name": "cloudforms-emphemeral",
"template": "cloudforms-emphemeral",
"annotations": {
"description": "CFME 4.1 without persistent Storage!\nWARNING: The CFME DockerImage is in TECH PREVIEW! \nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing!",
"iconClass": "icon-jboss",
"tags": "instant-app,cloudforms"
}
},
"message": "A Cloudforms service has been created in your project. The username/password are admin/smartvm.",
"objects": [
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
"name": "cfme",
"labels": {
"app": "cfme",
"template": "openshift-cloudforms"
}
},
"spec": {
"strategy": {
"type": "Rolling",
"rollingParams": {
"updatePeriodSeconds": 1,
"intervalSeconds": 1,
"timeoutSeconds": 600,
"maxUnavailable": "25%",
"maxSurge": "25%"
}
},
"triggers": [
{
"type": "ConfigChange"
}
],
"replicas": 1,
"selector": {
"deploymentconfig": "cfme"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "cfme",
"deploymentconfig": "cfme",
"template": "openshift-cloudforms"
}
},
"spec": {
"containers": [
{
"name": "cfme",
"image": "registry.access.redhat.com/cloudforms/cfme4:latest",
"ports": [
{
"containerPort": 80,
"protocol": "TCP"
},
{
"containerPort": 443,
"protocol": "TCP"
}
],
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"privileged": true
}
}
],
"serviceAccountName": "cfmesvcacc",
"serviceAccount": "cfmesvcacc",
"securityContext": {}
}
}
}
},
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "cfme",
"labels": {
"app": "cfme",
"template": "openshift-cloudforms"
}
},
"spec": {
"ports": [
{
"name": "80-tcp",
"protocol": "TCP",
"port": 80,
"targetPort": 80
},
{
"name": "443-tcp",
"protocol": "TCP",
"port": 443,
"targetPort": 443
}
],
"selector": {
"deploymentconfig": "cfme"
},
"sessionAffinity": "None"
}
},
{
"kind": "Route",
"apiVersion": "v1",
"metadata": {
"name": "cfme",
"labels": {
"app": "cfme",
"template": "openshift-cloudforms"
}
},
"spec": {
"host": "${HOSTNAME}",
"to": {
"kind": "Service",
"name": "cfme"
},
"port": {
"targetPort": "443-tcp"
},
"tls": {
"termination": "passthrough"
}
}
}
],
"parameters":
[
{
"name": "HOSTNAME",
"description": "Hostname for your CFME",
"required": true
}
]
}