-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmiq-template.yaml
107 lines (107 loc) · 2.43 KB
/
miq-template.yaml
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
apiVersion: v1
kind: Template
labels:
template: manageiq
metadata:
name: manageiq
annotations:
description: "ManageIQ appliance"
tags: "instant-app,manageiq,miq"
iconClass: "icon-rails"
objects:
- apiVersion: v1
kind: Service
metadata:
annotations:
description: "Exposes and load balances ManageIQ pods"
name: ${NAME}
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
- name: https
port: 443
protocol: TCP
targetPort: 443
selector:
name: ${NAME}
- apiVersion: v1
kind: Route
metadata:
name: ${NAME}
spec:
host: ${APPLICATION_DOMAIN}
port:
targetPort: https
tls:
termination: passthrough
to:
kind: Service
name: ${NAME}
- apiVersion: v1
kind: "DeploymentConfig"
metadata:
name: ${NAME}
annotations:
description: "Defines how to deploy the ManageIQ appliance"
spec:
template:
metadata:
labels:
name: ${NAME}
name: ${NAME}
spec:
containers:
- image: manageiq/manageiq:latest
imagePullPolicy: IfNotPresent
name: manageiq
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 480
timeoutSeconds: 3
ports:
- containerPort: 80
protocol: TCP
- containerPort: 443
protocol: TCP
securityContext:
privileged: true
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 200
timeoutSeconds: 3
replicas: 1
selector:
name: ${NAME}
triggers:
- type: "ConfigChange"
- type: "ImageChange"
imageChangeParams:
automatic: false
containerNames:
- "manageiq"
from:
kind: "ImageStreamTag"
name: "manageiq:latest"
strategy:
type: "Recreate"
recreateParams:
timeoutSeconds: 1200
parameters:
-
name: "NAME"
displayName: "Name"
required: true
description: "The name assigned to all of the frontend objects defined in this template."
value: manageiq
-
name: "APPLICATION_DOMAIN"
displayName: "Application Hostname"
description: "The exposed hostname that will route to the application service, if left blank a value will be defaulted."
value: ""