Use octavia resources for autoscaling example

lbaasv2 is probably not actively maintained.

Change-Id: Id11a47b5439f3bca05b536f15bec3e5fa92c9e56
changes/77/619577/1
Rabi Mishra 4 years ago
parent 0e0151c63e
commit 2b4eb5d9e3
  1. 8
      hot/autoscaling.yaml
  2. 2
      hot/lb_server.yaml

@ -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

@ -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]}

Loading…
Cancel
Save