I want to deploy a Postgres cluster inside the same private LAN as a K8s node pool. No other VMs should be attached to this private LAN.
At the moment this is not possible since the Postgres cluster requires the connections:cidr parameter. The CIDR cannot be fetched or computed anywhere. (A workaround is to create a native VM inside the same private LAN and use its data source to fetch the private IP of the VMs NIC. But the use case explicitly exempts the usage of another VM.)
Proposal
The Cloud API resource https://api.ionos.com/cloudapi/v6 /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes returns the UUID of the nodes. This is the same UUID as https://api.ionos.com/cloudapi/v6 /datacenters/{datacenterId}/servers/{UUID}. From there the private IP could be fetched via a data source. However, it seems that https://api.ionos.com/cloudapi/v6 /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/ is not implemented in the Terraform provider. Please make is possible to fetch the UUID of K8s nodes via a data source.
Current Provider Version
Use-cases
I want to deploy a Postgres cluster inside the same private LAN as a K8s node pool. No other VMs should be attached to this private LAN.
At the moment this is not possible since the Postgres cluster requires the
connections:cidr
parameter. The CIDR cannot be fetched or computed anywhere. (A workaround is to create a native VM inside the same private LAN and use its data source to fetch the private IP of the VMs NIC. But the use case explicitly exempts the usage of another VM.)Proposal
The Cloud API resource
https://api.ionos.com/cloudapi/v6 /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes
returns the UUID of the nodes. This is the same UUID ashttps://api.ionos.com/cloudapi/v6 /datacenters/{datacenterId}/servers/{UUID}
. From there the private IP could be fetched via a data source. However, it seems thathttps://api.ionos.com/cloudapi/v6 /k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/
is not implemented in the Terraform provider. Please make is possible to fetch the UUID of K8s nodes via a data source.