Skip to main content

okustera_loadbalancer (Resource)

The okustera_loadbalancer resource provisions and manages a dedicated or multi-tenant load balancer backed by OpenStack Octavia (Amphora driver) in Okustera.

Example Usage​

Basic Load Balancer with Private VIP​

resource "okustera_network" "vpc" {
name = "prod-vpc"
cidr = "198.51.100.0/24"
}

resource "okustera_loadbalancer" "ingress_lb" {
name = "ingress-lb"
description = "Production Ingress Amphora Load Balancer"
vip_subnet_id = okustera_network.vpc.subnet_ids[0]
provider_name = "amphora"
}

output "lb_vip" {
value = okustera_loadbalancer.ingress_lb.vip_address
}

Schema​

Required​

  • name (String) Human-readable name of the load balancer.

Optional​

  • description (String) Description of the load balancer.
  • vip_subnet_id (String) The ID of the Neutron subnet on which to allocate the Virtual IP (VIP).
  • vip_network_id (String) The ID of the Neutron network on which to allocate the VIP.
  • provider_name (String) Provider driver backing the load balancer (defaults to amphora).

Read-Only Attributes​

  • id (String) Unique load balancer UUID.
  • vip_address (String) Allocated virtual IP address for inbound traffic.
  • provisioning_status (String) Current provisioning state (e.g. ACTIVE, PENDING_CREATE).
  • operating_status (String) Current operating status (e.g. ONLINE, OFFLINE).
  • listeners_count (Number) Count of listeners attached to this load balancer.
  • pools_count (Number) Count of backend pools attached to this load balancer.
  • created_at (String) Creation timestamp.

Import​

Existing load balancers can be imported using their UUID:

terraform import okustera_loadbalancer.ingress_lb <loadbalancer_uuid>