-
Notifications
You must be signed in to change notification settings - Fork 0
/
loadbalancing.yaml
57 lines (46 loc) · 1.39 KB
/
loadbalancing.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
heat_template_version: 2014-10-16
description: A template to deploy a load balanced web server
parameters:
resources:
myloadbalancer:
type: OS::Neutron::LBaaS::LoadBalancer
properties:
vip_subnet: "4ba321db-9247-454b-9274-faad8ec76461"
floating_ip:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: 1fa7fade-2722-4677-9e2b-da22d385202b
port_id: { get_attr: [myloadbalancer, vip_port_id ]}
mylistener:
type: OS::Neutron::LBaaS::Listener
properties:
protocol: HTTP
protocol_port: 8080
loadbalancer: {get_resource: myloadbalancer}
mypool:
type: OS::Neutron::LBaaS::Pool
properties:
lb_algorithm: ROUND_ROBIN
loadbalancer: {get_resource: myloadbalancer}
listener: {get_resource: mylistener}
protocol: HTTP
server_nodes:
type: OS::Heat::ResourceGroup
properties:
count: 3
resource_def:
type: https://raw.githubusercontent.com/mathieugh/test2/746a3974d7b14465fee3aef469dd0dc312df3ba4/server.yaml
properties:
pool: {get_resource: mypool}
mymonitor:
type: OS::Neutron::LBaaS::HealthMonitor
properties:
delay: 15000
max_retries: 2
pool: {get_resource: mypool}
timeout: 5000
type: HTTP
outputs:
instance_ip6:
value: {get_attr: [server_nodes, show]}
description: Information on the resource group.