made cluster name prefix configurable and tweaked ways the agents random pets are created

small tweaks

small tweaks
This commit is contained in:
Karim Naufal
2022-03-05 05:33:29 +01:00
parent b93087d896
commit e6b8249846
7 changed files with 21 additions and 11 deletions

View File

@@ -94,7 +94,7 @@ resource "null_resource" "kustomization" {
content = local.is_single_node_cluster ? "" : templatefile(
"${path.module}/templates/traefik_config.yaml.tpl",
{
name = "k3s-${random_pet.cluster.id}-traefik"
name = "${random_pet.cluster.id}-traefik"
load_balancer_disable_ipv6 = var.load_balancer_disable_ipv6
load_balancer_type = var.load_balancer_type
location = var.location