You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
ENHANCEMENTS:
4
4
5
-
* Resource: `tencentcloud_kubernetes_cluster` add new attribute`cluster_os_type`.
5
+
* Resource: `tencentcloud_kubernetes_cluster` add new attributes`cluster_os_type`,`cluster_internet`,`cluster_intranet`,`managed_cluster_internet_security_policies` and `cluster_intranet_subnet_id`.
Description: "Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field `cluster_deploy_type` is "+
462
-
"'MANAGED_CLUSTER' and `cluster_internet` is true.If your set `cluster_internet` false, you should delete this field self",
457
+
Type: schema.TypeList,
458
+
Optional:true,
459
+
Elem: &schema.Schema{Type: schema.TypeString},
460
+
Description: "Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all."+
461
+
" This field can only set when field `cluster_deploy_type` is 'MANAGED_CLUSTER' and `cluster_internet` is true."+
462
+
" `managed_cluster_internet_security_policies` can not delete or empty once be set.",
463
463
},
464
464
"cluster_intranet_subnet_id": {
465
-
Type: schema.TypeString,
466
-
Optional: true,
467
-
Description: "Subnet id who can access this independent cluster, this field must and can only set when `cluster_intranet` is true. once set can not modify.",
465
+
Type: schema.TypeString,
466
+
Optional: true,
467
+
Description: "Subnet id who can access this independent cluster, this field must and can only set when `cluster_intranet` is true."+
468
+
" `cluster_intranet_subnet_id` can not modify once be set.",
468
469
},
469
470
"project_id": {
470
471
Type: schema.TypeInt,
@@ -1008,7 +1009,6 @@ func resourceTencentCloudTkeClusterCreate(d *schema.ResourceData, meta interface
Copy file name to clipboardExpand all lines: website/docs/r/kubernetes_cluster.html.markdown
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,9 @@ The following arguments are supported:
128
128
*`vpc_id` - (Required, ForceNew) Vpc Id of the cluster.
129
129
*`cluster_deploy_type` - (Optional, ForceNew) Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER', Default is 'MANAGED_CLUSTER'.
130
130
*`cluster_desc` - (Optional, ForceNew) Description of the cluster.
131
+
*`cluster_internet` - (Optional) Open internet access or not.
132
+
*`cluster_intranet_subnet_id` - (Optional) Subnet id who can access this independent cluster, this field must and can only set when `cluster_intranet` is true. `cluster_intranet_subnet_id` can not modify once be set.
133
+
*`cluster_intranet` - (Optional) Open intranet access or not.
131
134
*`cluster_ipvs` - (Optional, ForceNew) Indicates whether ipvs is enabled. Default is true.
132
135
*`cluster_max_pod_num` - (Optional, ForceNew) The maximum number of Pods per node in the cluster. Default is 256. Must be a multiple of 16 and large than 32.
133
136
*`cluster_max_service_num` - (Optional, ForceNew) The maximum number of services in the cluster. Default is 256. Must be a multiple of 16.
@@ -137,6 +140,7 @@ The following arguments are supported:
137
140
*`cluster_version` - (Optional, ForceNew) Version of the cluster, Default is '1.10.5'.
138
141
*`container_runtime` - (Optional, ForceNew) Runtime type of the cluster, the available values include: 'docker' and 'containerd'. Default is 'docker'.
139
142
*`ignore_cluster_cidr_conflict` - (Optional, ForceNew) Indicates whether to ignore the cluster cidr conflict error. Default is false.
143
+
*`managed_cluster_internet_security_policies` - (Optional) Security policies for managed cluster internet, like:'192.168.1.0/24' or '113.116.51.27', '0.0.0.0/0' means all. This field can only set when field `cluster_deploy_type` is 'MANAGED_CLUSTER' and `cluster_internet` is true. `managed_cluster_internet_security_policies` can not delete or empty once be set.
140
144
*`master_config` - (Optional, ForceNew) Deploy the machine configuration information of the 'MASTER_ETCD' service, and create <=7 units for common users.
141
145
*`project_id` - (Optional, ForceNew) Project ID, default value is 0.
0 commit comments