mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-24 07:50:40 -04:00
Allow upgrades on azure without Terraform changes on LBs created from within Kubernetes (#3257)
* k8s: use separate lb for K8s services on azure * terraform: introduce local revision variable and data resource * terraform: azure: dont expose full nodeport range * docs: add Azure load balancer migration
This commit is contained in:
parent
2dcea4fa63
commit
2854136192
8 changed files with 75 additions and 13 deletions
|
@ -60,6 +60,13 @@ locals {
|
|||
]
|
||||
in_cluster_endpoint = var.internal_load_balancer ? google_compute_address.loadbalancer_ip_internal[0].address : google_compute_global_address.loadbalancer_ip[0].address
|
||||
out_of_cluster_endpoint = var.debug && var.internal_load_balancer ? module.jump_host[0].ip : local.in_cluster_endpoint
|
||||
revision = 1
|
||||
}
|
||||
|
||||
# A way to force replacement of resources if the provider does not want to replace them
|
||||
# see: https://developer.hashicorp.com/terraform/language/resources/terraform-data#example-usage-data-for-replace_triggered_by
|
||||
resource "terraform_data" "replacement" {
|
||||
input = local.revision
|
||||
}
|
||||
|
||||
resource "random_id" "uid" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue