-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathloadbalancer_lbaasv2.yaml
More file actions
254 lines (210 loc) · 6.16 KB
/
loadbalancer_lbaasv2.yaml
File metadata and controls
254 lines (210 loc) · 6.16 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
heat_template_version: 2014-10-16
description: >
A template which provides a creates a loadbalancer using neutron's LBaaS.
parameters:
ocp_version:
type: string
description: >
The version of OpenShift Container Platform to deploy
app_subdomain:
type: string
members:
type: comma_delimited_list
master_hostname:
type: string
floatingip_id:
type: string
dns_servers:
type: comma_delimited_list
description: address of dns nameservers reachable in your environment
dns_update_key:
type: string
hidden: true
ca_cert:
type: string
description: Certificate Authority Certificate to be added to trust chain
floatingip:
type: string
key_name:
description: >
A pre-submitted SSH key to access the VM hosts
type: string
constraints:
- custom_constraint: nova.keypair
image:
type: string
default: ''
flavor:
description: >
Define the hardware characteristics for the VMs: CPU, Memory, base disk
type: string
constraints:
- custom_constraint: nova.flavor
hostname:
description: >
The load balancer hostname portion of the FQDN
type: string
constraints:
- allowed_pattern: '[a-z0-9\-]*'
description: Hostname must contain only characters [a-z0-9\-].
domain_name:
description: >
All VMs will be placed in this domain
type: string
rhn_username:
description: >
A valid user with entitlements to RHEL and OpenShift software repos
type: string
rhn_password:
description: >
The password for the RHN user
type: string
hidden: true
# Red Hat satellite subscription parameters
sat6_hostname:
type: string
description: >
The hostname of the Satellite 6 server which will provide software updates
default: ''
sat6_organization:
type: string
description: >
An organization string provided by Sat6 to group subscriptions
default: ''
sat6_activationkey:
type: string
description: >
An activation key string provided by Sat6 to enable subscriptions
rhn_pool:
description: >
A subscription pool containing the RHEL and OpenShift software repos
OPTIONAL
type: string
hidden: true
extra_rhn_pools:
type: comma_delimited_list
description: List of rhn pools which will be installed on each node.
default: ''
ssh_user:
description: >
The user for SSH access to the VM hosts
type: string
ansible_public_key:
description: >
The SSH public key that Ansible will use to access master and node hosts
This will be placed on each VM host in /root/.ssh/authorized_keys
type: string
master_ips:
type: comma_delimited_list
master_count:
type: number
master_hostname:
type: string
fixed_network:
description: >
The name or ID of the internal network
type: string
constraints:
- custom_constraint: neutron.network
fixed_subnet:
description: >
The name or ID of the internal IPv4 space
type: string
constraints:
- custom_constraint: neutron.subnet
external_network_subnet:
description: >
The name or ID of the external IPv4 space
type: string
constraints:
- custom_constraint: neutron.subnet
extra_repository_urls:
type: comma_delimited_list
description: List of repository URLs which will be installed on each node.
default: ''
extra_docker_repository_urls:
type: comma_delimited_list
description: List of docker repository URLs which will be installed on each node, if a repo is insecure use '#insecure' suffix.
default: ''
stack_name:
type: string
default: ''
bastion_node:
type: string
description: >
The name or ID of the bastion instance.
default: ''
resources:
lb:
type: OS::Neutron::LBaaS::LoadBalancer
properties:
name:
list_join: ['-', [ {get_param: stack_name}, 'loadbalancer']]
vip_subnet: {get_param: fixed_subnet}
listener:
type: OS::Neutron::LBaaS::Listener
properties:
loadbalancer: {get_resource: lb}
name:
list_join: ['-', [ {get_param: stack_name}, 'loadbalancer-listener']]
protocol: HTTPS
protocol_port: 8443
lb_pool:
type: OS::Neutron::LBaaS::Pool
properties:
listener: {get_resource: listener}
name:
list_join: ['-', [ {get_param: stack_name}, 'loadbalancer-listener-pool']]
description: Load balancer for OpenShift hosts.
lb_algorithm: ROUND_ROBIN
protocol: HTTPS
session_persistence:
type: SOURCE_IP
pool_members:
depends_on: [lb_pool]
type: OS::Heat::ResourceGroup
properties:
count: {get_param: master_count}
resource_def:
type: loadbalancer_lbaasv2_poolmember.yaml
properties:
# Note you have to pass the index and the entire list into the
# nested template, resolving via %index% doesn't work directly
# in the get_param here
index: "%index%"
lb_pool: {get_resource: lb_pool}
protocol_port: 8443
master_ips: {get_param: master_ips}
fixed_subnet: {get_param: fixed_subnet}
external_network_subnet: {get_param: external_network_subnet}
lb_monitor:
type: OS::Neutron::LBaaS::HealthMonitor
properties:
pool: { get_resource: lb_pool }
type: TCP
delay: 15
max_retries: 5
timeout: 10
outputs:
console_url:
description: URL of the OpenShift web console
value:
str_replace:
template: "https://%hostname%.%domainname%:8443/console/"
params:
'%hostname%': {get_param: hostname}
'%domainname%': {get_param: domain_name}
api_url:
description: URL entrypoint to the OpenShift API
value:
str_replace:
template: "https://%hostname%.%domainname%:8443/"
params:
'%hostname%': {get_param: hostname}
'%domainname%': {get_param: domain_name}
loadbalancer_ip:
description: Load Balancer IP
value: {get_attr: [lb, vip_address ]}
loadbalancer_port_id:
description: Load Balaner port id for floating ip association
value: {get_attr: [lb, vip_port_id]}