okustera_loadbalancer (Resource)
The okustera_loadbalancer resource provisions and manages a dedicated high-availability load balancer 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 Load Balancer"
vip_subnet_id = okustera_network.vpc.subnet_ids[0]
}
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.vpc_id(String) UUID of the multi-tier Tenant VPC to deploy the load balancer in.tier(String) VPC tier where the VIP is automatically placed (e.g.publicfor the Public DMZ).vip_subnet_id(String) The ID of the specific subnet on which to allocate the Virtual IP (VIP).vip_network_id(String) The ID of the virtual network on which to allocate the VIP.provider_name(String) Optional load balancer provider tier override.
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>