Closed dralquinta closed 2 years ago
Found the problem. This is in this part of the code:
locals {
release = "1.0"
# Subnet OCID local accessors
lbaas_subnet_ocid = length(data.oci_core_subnets.LBAASSUBNET.subnets) > 0 ? data.oci_core_subnets.LBAASSUBNET.subnets[0].id : null
nodepool_subnet_ocid = length(data.oci_core_subnets.ENDPOINTSUBNET.subnets) > 0 ? data.oci_core_subnets.LBAASSUBNET.subnets[0].id : null
So this is always passing on the LBAASSUBNET on local accessor nodepool_subnet_ocid
, so regardless of what this is, it'll always pass on the subnet OCID where the LBaaS sits on.
The fix is simple. Working on it now
When creating a cluster with the code and setting the control plan to private, then the nodes will get immediately tampered, preventing default namespace to go through correctly.
This is happening because the control plane API subnet is wrong and it should be the same as where the workernodes are.
WRONG
CORRECT