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

View File

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