Updated on 2022-02-22 GMT+08:00

ULB.LoadBalancer

Element Description

The ULB.LoadBalancer element can be used to deploy a shared load balancer resource object at the PaaS layer. By creating such an object, you can provide a unified entry address for a group of containerized applications with the same functions, and distribute requests in load balancing mode to backend container applications. Shared load balancers are applicable to web services with high access traffic. They forward requests based on domain names or URLs, making request routing more flexible. Compared with classic load balancers, shared load balancers provide stronger HTTP and HTTPS forwarding capabilities, and better forwarding performance and stability.

Element Properties

Table 1 Property Description

Property

Mandatory

Descripiton

vipAddress

No

IP address of the VPC where the shared load balancer is located

Type: ip

Value Description: IP address that is not used in the selected subnet

Value Constraint: The value must be an IP address.

description

No

Description

Type: string

Value Description: Customize the value.

Value Constraint: The value supports a maximum of 255 characters.

Suggestion: Customize the value.

publicIpId

No

ID of the elastic IP address that can be bound to the shared load balancer

Type: string

Value Description: ID of the elastic IP address that can be bound to the VPC.

Suggestion: Query the binding status and ID of the elastic IP address on the elastic IP address page of the VPC service.

subnetId

Yes

ID of the subnet that allocates VIP addresses to the shared load balancer

Type: Cloud.VPC.Subnet.All.Id

Value Description: ID of the subnet of the VPC

Value Constraint: You can view the subnet ID in the VPC details page.

Suggestion: Drag the object to VPC.Subnet and use {get_attribute: [element name, neutron_subnet_id]} to automatically generate the value.

name

No

Name of the shared load balancer

Type: string

Value Description: Customize the value.

Value Constraint: The value supports a maximum of 64 characters and can only contain digits, letters, underscores (_), and hyphens (-).

Suggestion: Customize the value.

Relationships Between Elements

Table 2 Relationship description

Description

Target

Connected

VPC.Subnet

Connected

VPC.EIP

Return Value

Property

Type

Description

vip_port_id

string

PORT_ID of the VPC where the shared load balancer is located

refName

string

Name of the shared load balancer

refID

string

ID of the shared load balancer

vip_address

string

IP address of the VPC where the shared load balancer is located

Blueprint Example

tosca_definitions_version: cloud_tosca_version_1_0
inputs:
  subnetId:
    description: ID of the subnet that allocates VIP addresses to the shared load balancer. It is the subnet ID rather than the subnet network ID.
node_templates:
  ulb:
    properties:
      description: ulb load balancer
      subnetId:
        get_input: subnetId
    type: Cloud.ULB.LoadBalancer