Skip to content

Commit 51ad870

Browse files
committed
add
1 parent 5975052 commit 51ad870

File tree

2 files changed

+106
-6
lines changed

2 files changed

+106
-6
lines changed

tencentcloud/services/tke/resource_tc_kubernetes_node_pool.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ resource "tencentcloud_kubernetes_node_pool" "example" {
6868
internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR"
6969
internet_max_bandwidth_out = 10
7070
public_ip_assigned = true
71-
password = "test123#"
71+
password = "Password@123"
7272
enhanced_security_service = false
7373
enhanced_monitor_service = false
7474
host_name = "12.123.0.0"
@@ -133,7 +133,7 @@ resource "tencentcloud_kubernetes_node_pool" "example" {
133133
internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR"
134134
internet_max_bandwidth_out = 10
135135
public_ip_assigned = true
136-
password = "test123#"
136+
password = "Password@123"
137137
enhanced_security_service = false
138138
enhanced_monitor_service = false
139139
}
@@ -145,6 +145,56 @@ resource "tencentcloud_kubernetes_node_pool" "example" {
145145
}
146146
```
147147

148+
If instance_type is CBM
149+
150+
```hcl
151+
resource "tencentcloud_kubernetes_node_pool" "example" {
152+
name = "tf-example"
153+
cluster_id = "cls-23ieal0c"
154+
max_size = 100
155+
min_size = 1
156+
vpc_id = "vpc-i5yyodl9"
157+
subnet_ids = ["subnet-d4umunpy"]
158+
retry_policy = "INCREMENTAL_INTERVALS"
159+
enable_auto_scale = true
160+
multi_zone_subnet_policy = "EQUALITY"
161+
node_os = "img-eb30mz89"
162+
delete_keep_instance = false
163+
164+
node_config {
165+
data_disk {
166+
disk_type = "LOCAL_NVME"
167+
disk_size = 3570
168+
file_system = "ext4"
169+
mount_target = "/var/lib/data1"
170+
}
171+
172+
data_disk {
173+
disk_type = "LOCAL_NVME"
174+
disk_size = 3570
175+
file_system = "ext4"
176+
mount_target = "/var/lib/data2"
177+
}
178+
}
179+
180+
auto_scaling_config {
181+
instance_type = "BMI5.24XLARGE384"
182+
system_disk_type = "LOCAL_BASIC"
183+
system_disk_size = "440"
184+
orderly_security_group_ids = ["sg-4z20n68d"]
185+
186+
internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR"
187+
internet_max_bandwidth_out = 10
188+
public_ip_assigned = true
189+
password = "Password@123"
190+
enhanced_security_service = false
191+
enhanced_monitor_service = false
192+
host_name = "example"
193+
host_name_style = "ORIGINAL"
194+
}
195+
}
196+
```
197+
148198
Wait for all scaling nodes to be ready with wait_node_ready and scale_tolerance parameters. The default maximum scaling timeout is 30 minutes.
149199

150200
```hcl

website/docs/r/kubernetes_node_pool.html.markdown

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ resource "tencentcloud_kubernetes_node_pool" "example" {
7979
internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR"
8080
internet_max_bandwidth_out = 10
8181
public_ip_assigned = true
82-
password = "test123#"
82+
password = "Password@123"
8383
enhanced_security_service = false
8484
enhanced_monitor_service = false
8585
host_name = "12.123.0.0"
@@ -144,7 +144,7 @@ resource "tencentcloud_kubernetes_node_pool" "example" {
144144
internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR"
145145
internet_max_bandwidth_out = 10
146146
public_ip_assigned = true
147-
password = "test123#"
147+
password = "Password@123"
148148
enhanced_security_service = false
149149
enhanced_monitor_service = false
150150
}
@@ -156,6 +156,56 @@ resource "tencentcloud_kubernetes_node_pool" "example" {
156156
}
157157
```
158158

159+
### If instance_type is CBM
160+
161+
```hcl
162+
resource "tencentcloud_kubernetes_node_pool" "example" {
163+
name = "tf-example"
164+
cluster_id = "cls-23ieal0c"
165+
max_size = 100
166+
min_size = 1
167+
vpc_id = "vpc-i5yyodl9"
168+
subnet_ids = ["subnet-d4umunpy"]
169+
retry_policy = "INCREMENTAL_INTERVALS"
170+
enable_auto_scale = true
171+
multi_zone_subnet_policy = "EQUALITY"
172+
node_os = "img-eb30mz89"
173+
delete_keep_instance = false
174+
175+
node_config {
176+
data_disk {
177+
disk_type = "LOCAL_NVME"
178+
disk_size = 3570
179+
file_system = "ext4"
180+
mount_target = "/var/lib/data1"
181+
}
182+
183+
data_disk {
184+
disk_type = "LOCAL_NVME"
185+
disk_size = 3570
186+
file_system = "ext4"
187+
mount_target = "/var/lib/data2"
188+
}
189+
}
190+
191+
auto_scaling_config {
192+
instance_type = "BMI5.24XLARGE384"
193+
system_disk_type = "LOCAL_BASIC"
194+
system_disk_size = "440"
195+
orderly_security_group_ids = ["sg-4z20n68d"]
196+
197+
internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR"
198+
internet_max_bandwidth_out = 10
199+
public_ip_assigned = true
200+
password = "Password@123"
201+
enhanced_security_service = false
202+
enhanced_monitor_service = false
203+
host_name = "example"
204+
host_name_style = "ORIGINAL"
205+
}
206+
}
207+
```
208+
159209
### Wait for all scaling nodes to be ready with wait_node_ready and scale_tolerance parameters. The default maximum scaling timeout is 30 minutes.
160210

161211
```hcl
@@ -294,7 +344,7 @@ The `auto_scaling_config` object supports the following:
294344
* `spot_instance_type` - (Optional, String) Type of spot instance, only support `one-time` now. Note: it only works when instance_charge_type is set to `SPOTPAID`.
295345
* `spot_max_price` - (Optional, String) Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to `SPOTPAID`.
296346
* `system_disk_size` - (Optional, Int) Volume of system disk in GB. Default is `50`.
297-
* `system_disk_type` - (Optional, String) Type of a CVM disk. Valid value: `LOCAL_BASIC`, `LOCAL_SSD`, `CLOUD_BASIC`, `CLOUD_PREMIUM`, `CLOUD_SSD`, `CLOUD_HSSD`, `CLOUD_TSSD` and `CLOUD_BSSD`. Default is `CLOUD_PREMIUM`.
347+
* `system_disk_type` - (Optional, String) Type of a CVM disk. Valid value: `LOCAL_BASIC`, `LOCAL_SSD`, `CLOUD_BASIC`, `CLOUD_PREMIUM`, `CLOUD_SSD`, `CLOUD_HSSD`, `CLOUD_TSSD`, `CLOUD_BSSD` and `LOCAL_NVME`. Default is `CLOUD_PREMIUM`.
298348

299349
The `data_disk` object of `auto_scaling_config` supports the following:
300350

@@ -310,7 +360,7 @@ The `data_disk` object of `node_config` supports the following:
310360
* `auto_format_and_mount` - (Optional, Bool, ForceNew) Indicate whether to auto format and mount or not. Default is `false`.
311361
* `disk_partition` - (Optional, String, ForceNew) The name of the device or partition to mount. NOTE: this argument doesn't support setting in node pool, or will leads to mount error.
312362
* `disk_size` - (Optional, Int, ForceNew) Volume of disk in GB. Default is `0`.
313-
* `disk_type` - (Optional, String, ForceNew) Types of disk. Valid value: `LOCAL_BASIC`, `LOCAL_SSD`, `CLOUD_BASIC`, `CLOUD_PREMIUM`, `CLOUD_SSD`, `CLOUD_HSSD`, `CLOUD_TSSD` and `CLOUD_BSSD`.
363+
* `disk_type` - (Optional, String, ForceNew) Types of disk. Valid value: `LOCAL_BASIC`, `LOCAL_SSD`, `CLOUD_BASIC`, `CLOUD_PREMIUM`, `CLOUD_SSD`, `CLOUD_HSSD`, `CLOUD_TSSD`, `CLOUD_BSSD` and `LOCAL_NVME`.
314364
* `file_system` - (Optional, String, ForceNew) File system, e.g. `ext3/ext4/xfs`.
315365
* `mount_target` - (Optional, String, ForceNew) Mount target.
316366

0 commit comments

Comments
 (0)