simple-loadbalancer

ka-myl/simple-loadbalancer/upcloud

Terraform Module HCL UPCLOUD

Basic load balancer setup for UpCloud

Install
module "simple-loadbalancer" {
source = "ka-myl/simple-loadbalancer/upcloud"
version = "1.0.0"
}
plain text: /constructs/tfmod-ka-myl-simple-loadbalancer-upcloud/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform UpCloud Simple Loadbalancer This module creates a simple load balancer setup with all the basic pieces. Example usage: `` resource "upcloud_network" "sdn" { name = "lb-test-sdn" zone = "pl-waw1" ip_network { address = "10.0.20.0/24" dhcp = true family = "IPv4" } } resource "upcloud_server" "servers" { count = 3 hostname = "lb-test-${count.index}" zone = "pl-waw1" plan = "1xCPU-1GB" template { storage = data.upcloud_storage.app_image.id size = 25 } network_interface { type = "utility" } network_interface { type = "public" } network_interface { type = "private" network = upcloud_network.sdn.id } } module "lb" { source = "./basic_loadbalancer" name_prefix = "xyz" zone = "pl-waw1" network_id = upcloud_network.sdn.id servers_ips = [for v in upcloud_server.servers: v.network_interface.

Inputs (7)
NameTypeDescriptionDefault
servers_ipslist(string)List of servers IP addresses. The traffic will be distributed across the servers required
server_portnumberPort to which the load balancer should direct traffic for specific server required
name_prefixstringPrefix used to name all of the resources created by this module required
zonestringZone in which the load balancer service runs. Must be the same as private networ required
network_idstringID of the private network that will be used for load balancing required
frontend_portnumberPort on which the load balancer service will accept requests80
planstringLoad balancer service plan"development"
Outputs (6)
backend_name
frontend_id
frontend_name
dns_name
service_id
backend_id
Resources (4)
upcloud_loadbalancerupcloud_loadbalancer_backendupcloud_loadbalancer_frontendupcloud_loadbalancer_static_backend_member
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud UPCLOUD
Total downloads388
Inputs7
Outputs6
Resources4
Namespaceka-myl
Updated