Use octavia resources for autoscaling example

lbaasv2 is probably not actively maintained.

Change-Id: Id11a47b5439f3bca05b536f15bec3e5fa92c9e56
This commit is contained in:
Rabi Mishra 2018-11-22 19:18:07 +05:30
parent 0e0151c63e
commit 2b4eb5d9e3
2 changed files with 5 additions and 5 deletions

View File

@ -155,17 +155,17 @@ resources:
- ''
- - {'=': {server_group: {get_param: "OS::stack_id"}}}
lb:
type: OS::Neutron::LBaaS::LoadBalancer
type: OS::Octavia::LoadBalancer
properties:
vip_subnet: {get_param: subnet_id}
listener:
type: OS::Neutron::LBaaS::Listener
type: OS::Octavia::Listener
properties:
loadbalancer: {get_resource: lb}
protocol: HTTP
protocol_port: 80
pool:
type: OS::Neutron::LBaaS::Pool
type: OS::Octavia::Pool
properties:
listener: {get_resource: listener}
lb_algorithm: ROUND_ROBIN
@ -173,7 +173,7 @@ resources:
session_persistence:
type: SOURCE_IP
lb_monitor:
type: OS::Neutron::LBaaS::HealthMonitor
type: OS::Octavia::HealthMonitor
properties:
pool: { get_resource: pool }
type: TCP

View File

@ -37,7 +37,7 @@ resources:
user_data_format: RAW
networks: [{network: {get_param: network} }]
member:
type: OS::Neutron::LBaaS::PoolMember
type: OS::Octavia::PoolMember
properties:
pool: {get_param: pool_id}
address: {get_attr: [server, first_address]}