From 34d5a0617626345171191d017e4677ff49829954 Mon Sep 17 00:00:00 2001 From: natanelm Date: Mon, 8 Sep 2025 09:09:15 +0000 Subject: [PATCH] HA + VMSS | Deploy load balancers with floating IP by default --- modules/high_availability_existing_vnet/README.md | 4 ++-- modules/high_availability_existing_vnet/variables.tf | 2 +- modules/high_availability_new_vnet/README.md | 4 ++-- modules/high_availability_new_vnet/variables.tf | 2 +- modules/vmss_existing_vnet/README.md | 4 ++-- modules/vmss_existing_vnet/variables.tf | 2 +- modules/vmss_new_vnet/README.md | 4 ++-- modules/vmss_new_vnet/variables.tf | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/high_availability_existing_vnet/README.md b/modules/high_availability_existing_vnet/README.md index ff6fcda..224e5f9 100755 --- a/modules/high_availability_existing_vnet/README.md +++ b/modules/high_availability_existing_vnet/README.md @@ -50,7 +50,7 @@ module "example_module" { authentication_type = "Password" availability_type = "Availability Zone" enable_custom_metrics = true - enable_floating_ip = false + enable_floating_ip = true use_public_ip_prefix = false create_public_ip_prefix = false existing_public_ip_prefix_id = "" @@ -117,7 +117,7 @@ module "example_module" { | **authentication_type** | Specifies whether a password authentication or SSH Public Key authentication should be used | string | "Password";
"SSH Public Key";
| | **availability_type** | Specifies whether to deploy the solution based on Azure Availability Set or based on Azure Availability Zone | string | "Availability Zone";
"Availability Set";
**Default:** "Availability Zone" | | **enable_custom_metrics** | Indicates whether CloudGuard Metrics will be used for Cluster members monitoring | boolean | true;
false;
**Default:** true | -| **enable_floating_ip** | Indicates whether the load balancers will be deployed with floating IP | boolean | true;
false;
**Default:** false | +| **enable_floating_ip** | Indicates whether the load balancers will be deployed with floating IP | boolean | true;
false;
**Default:** true | | **use_public_ip_prefix** | Indicates whether the public IP resources will be deployed with public IP prefix | boolean | true;
false;
**Default:** false | | **create_public_ip_prefix** | Indicates whether the public IP prefix will be created or an existing one will be used | boolean | true;
false;
**Default:** false | | **existing_public_ip_prefix_id** | The existing public IP prefix resource ID | string | Existing public IP prefix resource ID
| diff --git a/modules/high_availability_existing_vnet/variables.tf b/modules/high_availability_existing_vnet/variables.tf index 045a651..cbb921f 100755 --- a/modules/high_availability_existing_vnet/variables.tf +++ b/modules/high_availability_existing_vnet/variables.tf @@ -272,7 +272,7 @@ variable "enable_custom_metrics" { variable "enable_floating_ip" { description = "Indicates whether the load balancers will be deployed with floating IP." type = bool - default = false + default = true } variable "use_public_ip_prefix" { diff --git a/modules/high_availability_new_vnet/README.md b/modules/high_availability_new_vnet/README.md index 684e9c5..5d82482 100755 --- a/modules/high_availability_new_vnet/README.md +++ b/modules/high_availability_new_vnet/README.md @@ -53,7 +53,7 @@ module "example_module" { authentication_type = "Password" availability_type = "Availability Zone" enable_custom_metrics = true - enable_floating_ip = false + enable_floating_ip = true use_public_ip_prefix = false create_public_ip_prefix = false existing_public_ip_prefix_id = "" @@ -118,7 +118,7 @@ module "example_module" { | **authentication_type** | Specifies whether a password authentication or SSH Public Key authentication should be used | string | "Password";
"SSH Public Key";
| | **availability_type** | Specifies whether to deploy the solution based on Azure Availability Set or Azure Availability Zone | string | "Availability Zone";
"Availability Set";
**Default:** "Availability Zone" | | **enable_custom_metrics** | Indicates whether CloudGuard Metrics will be used for Cluster members monitoring | boolean | true;
false;
**Default:** true | -| **enable_floating_ip** | Indicates whether the load balancers will be deployed with floating IP | boolean | true;
false;
**Default:** false | +| **enable_floating_ip** | Indicates whether the load balancers will be deployed with floating IP | boolean | true;
false;
**Default:** true | | **use_public_ip_prefix** | Indicates whether the public IP resources will be deployed with public IP prefix | boolean | true;
false;
**Default:** false | | **create_public_ip_prefix** | Indicates whether the public IP prefix will be created or an existing one will be used | boolean | true;
false;
**Default:** false | | **existing_public_ip_prefix_id** | The existing public IP prefix resource ID | string | Existing public IP prefix resource ID
**Default:** "" | diff --git a/modules/high_availability_new_vnet/variables.tf b/modules/high_availability_new_vnet/variables.tf index 55ade50..fde2d00 100755 --- a/modules/high_availability_new_vnet/variables.tf +++ b/modules/high_availability_new_vnet/variables.tf @@ -259,7 +259,7 @@ variable "enable_custom_metrics" { variable "enable_floating_ip" { description = "Indicates whether the load balancers will be deployed with floating IP." type = bool - default = false + default = true } variable "use_public_ip_prefix" { diff --git a/modules/vmss_existing_vnet/README.md b/modules/vmss_existing_vnet/README.md index 51987a5..68f9a53 100755 --- a/modules/vmss_existing_vnet/README.md +++ b/modules/vmss_existing_vnet/README.md @@ -58,7 +58,7 @@ module "example_module" { frontend_load_distribution = "Default" backend_load_distribution = "Default" enable_custom_metrics = true - enable_floating_ip = false + enable_floating_ip = true use_public_ip_prefix = false create_public_ip_prefix = false existing_public_ip_prefix_id = "" @@ -132,7 +132,7 @@ module "example_module" { | **backend_load_distribution** | The load balancing distribution method for the Internal Load Balancer | string | "Default" - None(5-tuple);
"SourceIP" - ClientIP(2-tuple);
"SourceIPProtocol" - ClientIP and protocol(3-tuple). | | **notification_email** | An email address to notify about scaling operations | string | Leave empty double quotes or enter a valid email address. | | **enable_custom_metrics** | Indicates whether Custom Metrics will be used for VMSS Scaling policy and VM monitoring | boolean | true;
false.
**Default:** true | -| **enable_floating_ip** | Indicates whether the load balancers will be deployed with floating IP | boolean | true;
false.
**Default:** false | +| **enable_floating_ip** | Indicates whether the load balancers will be deployed with floating IP | boolean | true;
false.
**Default:** true | | **use_public_ip_prefix** | Indicates whether the public IP resources will be deployed with public IP prefix. | boolean | true;
false;
**Default:** false | | **create_public_ip_prefix** | Indicates whether the public IP prefix will be created or an existing one will be used. | boolean | true;
false;
**Default:** false | | **existing_public_ip_prefix_id** | The existing public IP prefix resource ID. | string | Existing public IP prefix resource ID
**Default:** "" | diff --git a/modules/vmss_existing_vnet/variables.tf b/modules/vmss_existing_vnet/variables.tf index 7330cd3..ab88499 100755 --- a/modules/vmss_existing_vnet/variables.tf +++ b/modules/vmss_existing_vnet/variables.tf @@ -365,7 +365,7 @@ variable "enable_custom_metrics" { variable "enable_floating_ip" { description = "Indicates whether the load balancers will be deployed with floating IP." type = bool - default = false + default = true } variable "use_public_ip_prefix" { diff --git a/modules/vmss_new_vnet/README.md b/modules/vmss_new_vnet/README.md index 8666171..cf44905 100755 --- a/modules/vmss_new_vnet/README.md +++ b/modules/vmss_new_vnet/README.md @@ -62,7 +62,7 @@ module "example_module" { frontend_load_distribution = "Default" backend_load_distribution = "Default" enable_custom_metrics = true - enable_floating_ip = false + enable_floating_ip = true use_public_ip_prefix = false create_public_ip_prefix = false existing_public_ip_prefix_id = "" @@ -131,7 +131,7 @@ module "example_module" { | **backend_load_distribution** | The load balancing distribution method for the Internal Load Balancer | string | "Default" - None (5-tuple);
"SourceIP" - ClientIP (2-tuple);
"SourceIPProtocol" - ClientIP and protocol (3-tuple)
| | **notification_email** | An email address to notify about scaling operations | string | Leave empty double quotes or enter a valid email address
| | **enable_custom_metrics** | Indicates whether Custom Metrics will be used for VMSS Scaling policy and VM monitoring | boolean | true;
false;
| -| **enable_floating_ip** | Indicates whether the load balancers will be deployed with floating IP | boolean | true;
false;
| +| **enable_floating_ip** | Indicates whether the load balancers will be deployed with floating IP | boolean | true;
false;
**Default:** true | | **use_public_ip_prefix** | Indicates whether the public IP resources will be deployed with public IP prefix. | boolean | true;
false;
**Default:** false | | **create_public_ip_prefix** | Indicates whether the public IP prefix will be created or an existing one will be used. | boolean | true;
false;
**Default:** false | | **existing_public_ip_prefix_id** | The existing public IP prefix resource ID. | string | Existing public IP prefix resource ID
**Default:** "" | diff --git a/modules/vmss_new_vnet/variables.tf b/modules/vmss_new_vnet/variables.tf index d4277c8..ecf269c 100755 --- a/modules/vmss_new_vnet/variables.tf +++ b/modules/vmss_new_vnet/variables.tf @@ -354,7 +354,7 @@ variable "enable_custom_metrics" { variable "enable_floating_ip" { description = "Indicates whether the load balancers will be deployed with floating IP." type = bool - default = false + default = true } variable "use_public_ip_prefix" {