terraform-provider-ionoscloud icon indicating copy to clipboard operation
terraform-provider-ionoscloud copied to clipboard

ionoscloud_k8s_node_pool_nodes.nodes does not expose private_ip

Open blazer82 opened this issue 6 months ago • 0 comments

Description

We have an ionoscloud_k8s_node_pool:

resource "ionoscloud_k8s_node_pool" "main_pool" {
  k8s_cluster_id    = ionoscloud_k8s_cluster.my_cluster.id
  datacenter_id     = var.ionos_datacenter_id
  name              = "main-pool"
  k8s_version       = ionoscloud_k8s_cluster.my_cluster.k8s_version
  node_count        = 1
  cpu_family        = var.node_cpu_family
  cores_count       = var.node_cores_count
  ram_size          = var.node_ram_size_mb
  storage_type      = var.node_storage_type
  storage_size      = var.node_storage_size_gb
  availability_zone = "AUTO"
  lans {
    id   = ionoscloud_lan.private_lan.id
    dhcp = true
  }
}

We're trying to get the private IPs of the nodes through data.ionoscloud_k8s_node_pool_nodes.main_pool_nodes.nodes which results in:

[
  {
    "id" = "xxxxxxxx-redacted"
    "k8s_version" = "1.32.4"
    "name" = "main-pool-redacted"
    "private_ip" = ""
    "public_ip" = "217.x.x.x"
  },
]

In the IONOS DCD on the web we have verified that the node does indeed have a private and a public IP but only the public one is returned by ionoscloud_k8s_node_pool_nodes.main_pool_nodes.nodes.

Expected behavior

We'd expect the private_ip field of the node to have the same value as shown in IONOS DCD.

Environment

Terraform version:

OpenTofu v1.8.7
on darwin_arm64

Provider version:

ionoscloud = {
  source  = "ionos-cloud/ionoscloud"
  version = "~> 6.7.6"
}

OS:

Mac OS 15.4.1

blazer82 avatar May 09 '25 08:05 blazer82