Skip to content

Commit d1c9daa

Browse files
committed
update tke cluster doc
1 parent 331806c commit d1c9daa

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

tencentcloud/services/tke/resource_tc_kubernetes_cluster_extension.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ func resourceTencentCloudKubernetesClusterCreatePostFillRequest0(ctx context.Con
8787
basic.ClusterOs = cluster_os
8888
}
8989

90+
advanced.NetworkType = d.Get("network_type").(string)
91+
9092
if advanced.NetworkType == TKE_CLUSTER_NETWORK_TYPE_VPC_CNI {
9193
if v, ok := d.GetOk("vpc_cni_type"); ok {
9294
advanced.VpcCniType = v.(string)
@@ -96,6 +98,7 @@ func resourceTencentCloudKubernetesClusterCreatePostFillRequest0(ctx context.Con
9698
}
9799

98100
cidrSet.ClusterCidr = d.Get("cluster_cidr").(string)
101+
cidrSet.ServiceCIDR = d.Get("service_cidr").(string)
99102

100103
if ClaimExpiredSeconds, ok := d.GetOk("claim_expired_seconds"); ok {
101104
cidrSet.ClaimExpiredSeconds = int64(ClaimExpiredSeconds.(int))
@@ -464,6 +467,7 @@ func resourceTencentCloudKubernetesClusterCreatePostHandleResponse0(ctx context.
464467
//Modify node pool global config
465468
if _, ok := d.GetOk("node_pool_global_config"); ok {
466469
request := tkeGetNodePoolGlobalConfig(d)
470+
request.ClusterId = &id
467471
err = resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
468472
inErr := service.ModifyClusterNodePoolGlobalConfig(ctx, request)
469473
if inErr != nil {

website/docs/r/kubernetes_cluster.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ The `master_config` object supports the following:
948948
* `security_group_ids` - (Optional, List, ForceNew) Security groups to which a CVM instance belongs.
949949
* `system_disk_size` - (Optional, Int, ForceNew) Volume of system disk in GB. Default is `50`.
950950
* `system_disk_type` - (Optional, String, ForceNew) System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage. NOTE: `CLOUD_BASIC`, `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
951-
* `user_data` - (Optional, String, ForceNew) User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
951+
* `user_data` - (Optional, String, ForceNew) ase64-encoded User Data text, the length limit is 16KB.
952952

953953
The `node_pool_global_config` object supports the following:
954954

@@ -990,7 +990,7 @@ The `worker_config` object supports the following:
990990
* `security_group_ids` - (Optional, List, ForceNew) Security groups to which a CVM instance belongs.
991991
* `system_disk_size` - (Optional, Int, ForceNew) Volume of system disk in GB. Default is `50`.
992992
* `system_disk_type` - (Optional, String, ForceNew) System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage. NOTE: `CLOUD_BASIC`, `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
993-
* `user_data` - (Optional, String, ForceNew) User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
993+
* `user_data` - (Optional, String, ForceNew) ase64-encoded User Data text, the length limit is 16KB.
994994

995995
## Attributes Reference
996996

website/docs/r/kubernetes_scale_worker.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The `worker_config` object supports the following:
185185
* `security_group_ids` - (Optional, List, ForceNew) Security groups to which a CVM instance belongs.
186186
* `system_disk_size` - (Optional, Int, ForceNew) Volume of system disk in GB. Default is `50`.
187187
* `system_disk_type` - (Optional, String, ForceNew) System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage. NOTE: `CLOUD_BASIC`, `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
188-
* `user_data` - (Optional, String, ForceNew) User data provided to instances, needs to be encoded in base64, and the maximum supported data size is 16KB.
188+
* `user_data` - (Optional, String, ForceNew) ase64-encoded User Data text, the length limit is 16KB.
189189

190190
## Attributes Reference
191191

0 commit comments

Comments
 (0)