Open Ultrafenrir opened 4 years ago
Maybe a bug, maybe i'm doing something wrong but the same works fine with other cluster types.
0.12.21
1.71.1
resource alicloud_cs_serverless_kubernetes cluster { depends_on = [alicloud_vpc.vpc, alicloud_vswitch.vsw] name = var.NAME vpc_id = alicloud_vpc.vpc.id vswitch_id = alicloud_vswitch.vsw.id new_nat_gateway = var.NEW_NAT_GATEWAY endpoint_public_access_enabled = true private_zone = false deletion_protection = false kube_config = format("%s/%s", var.CONFIG_DIR, var.KUBE_CONFIG) client_cert = format("%s/%s", var.CONFIG_DIR, var.CLIENT_CERT) client_key = format("%s/%s", var.CONFIG_DIR, var.CLIENT_KEY) cluster_ca_cert = format("%s/%s", var.CONFIG_DIR, var.CA_CERT) }
kube_config option return config with public api endpoint
kube_config option return config with internal api endpoint
Duplicated https://github.com/terraform-providers/terraform-provider-alicloud/issues/2291
Maybe a bug, maybe i'm doing something wrong but the same works fine with other cluster types.
Terraform Version
0.12.21
Provider Version
1.71.1
Affected Resource(s)
resource alicloud_cs_serverless_kubernetes cluster { depends_on = [alicloud_vpc.vpc, alicloud_vswitch.vsw] name = var.NAME vpc_id = alicloud_vpc.vpc.id vswitch_id = alicloud_vswitch.vsw.id new_nat_gateway = var.NEW_NAT_GATEWAY endpoint_public_access_enabled = true private_zone = false deletion_protection = false kube_config = format("%s/%s", var.CONFIG_DIR, var.KUBE_CONFIG) client_cert = format("%s/%s", var.CONFIG_DIR, var.CLIENT_CERT) client_key = format("%s/%s", var.CONFIG_DIR, var.CLIENT_KEY) cluster_ca_cert = format("%s/%s", var.CONFIG_DIR, var.CA_CERT) }
Expected Behavior
kube_config option return config with public api endpoint
Actual Behavior
kube_config option return config with internal api endpoint