Skip to content

Unused IPv6 worker ip when only creating control plane nodes #284

@arauin

Description

@arauin

count = var.enable_ipv6 ? local.total_worker_count > 0 ? local.total_worker_count : 1 : 0

When creating a cluster without worker nodes, terraform still wants to create a worker ipv6 address, which seems to be unused.

The main problem is that im reaching the limits for Primary IPs through this, i get this error from the hetzner Primary IP limit exceeded (resource_limit_exceeded)

module "talos" {
  source  = "hcloud-talos/talos/hcloud"
  # Find the latest version on the Terraform Registry:
  # https://registry.terraform.io/modules/hcloud-talos/talos/hcloud
  version = "<latest-version>" # Replace with the latest version number

  # Use versions compatible with each other and supported by the module/Talos
  talos_version      = "v1.11.0"
  kubernetes_version = "1.30.3"
  cilium_version     = "1.16.2"

  hcloud_token = "your-hcloud-token"

  cluster_name     = "dummy.com"
  cluster_domain   = "cluster.dummy.com.local"
  cluster_api_host = "kube.dummy.com"

  firewall_kube_api_source            = ["0.0.0.0/0"]
  firewall_talos_api_source           = ["0.0.0.0/0"]
  datacenter_name                     = "fsn1-dc14"
  output_mode_config_cluster_endpoint = "cluster_endpoint"
  control_plane_count                 = 3
  control_plane_server_type           = "cax11"
  enable_ipv6 = true

  network_ipv4_cidr = "10.0.0.0/16"
  node_ipv4_cidr    = "10.0.1.0/24"
  pod_ipv4_cidr     = "10.0.16.0/20"
  service_ipv4_cidr = "10.0.8.0/21"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions