Skip to content

Commit 963f9e3

Browse files
committed
update doc vks terraform
1 parent e241ca9 commit 963f9e3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/resources/vks_cluster.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "vngcloud_vks_cluster_node_group" "primary" {
3434
}
3535
```
3636

37-
**Important Note**: We suggest managing node groups as independent resources, as shown in this example. This approach enables you to add or remove node groups without having to rebuild the entire cluster. If you embed node groups directly within the vngcloud_vks_cluster resource, you will need to recreate the cluster to remove them.
37+
**Important Note**: We suggest managing node groups as independent resources, as shown in this example. This approach enables you to add or remove node groups without having to rebuild the entire cluster. If you embed node groups directly within the `vngcloud_vks_cluster` resource, you will need to recreate the cluster to remove them.
3838

3939
## Example Usage - with the default node group
4040

@@ -91,7 +91,7 @@ resource "vngcloud_vks_cluster_node_group" "primary" {
9191
upgrade_config {
9292
strategy = "SURGE"
9393
max_surge = 1
94-
max_unavailable = 0
94+
max_unavailable = 0
9595
}
9696
image_id = "img-108b3a77-ab58-4000-9b3e-190d0b4b07fc"
9797
flavor_id = "flav-9e88cfb4-ec31-4ad4-8ba5-243459f6d123"
@@ -138,7 +138,7 @@ resource "vngcloud_vks_cluster_node_group" "primary" {
138138
upgrade_config {
139139
strategy = "SURGE"
140140
max_surge = 1
141-
max_unavailable = 0
141+
max_unavailable = 0
142142
}
143143
image_id = "img-108b3a77-ab58-4000-9b3e-190d0b4b07fc"
144144
flavor_id = "flav-9e88cfb4-ec31-4ad4-8ba5-243459f6d123"

docs/resources/vks_cluster_node_group.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ resource "vngcloud_vks_cluster_node_group" "primary" {
7676
* `image_id` - (Optional) Specifies the image you want to use for your node group. You can obtain the Image ID from the VKS Portal or from this [link](https://docs.vngcloud.vn/vng-cloud-document/v/vn/vks/tham-khao-them/danh-sach-system-image-dang-ho-tro) and enter it in this field.
7777
* `flavor_id` - (Optional) Specifies the flavor you want to use for your node in the node group. You can obtain the Flavor ID from this [link](https://docs.vngcloud.vn/vng-cloud-document/v/vn/vks/tham-khao-them/danh-sach-flavor-dang-ho-tro) and enter it in this field.
7878
* `disk_size` - (Optional) - Specifies the data disk size for new nodes in this node group. Must be between 20 GB and 1000 GB. The default value is "100".
79-
* `disk_type` - (Optional) - Specifies the type of data disk for new nodes in this node group. Currently, SSD disks and NVME disks are available. The default value is "SSD".
79+
* `disk_type` - (Optional) - Specifies the type of data disk for new nodes in this node group. Currently, SSD disks and NVME disks are available.
8080
* `enable_private_nodes` - (Optional) You can choose the mode that you want your node group works. The VKS public node groups include worker nodes deployed in public subnets within a VPC. These worker nodes have public IP addresses and CAN communicate directly with the public internet. The private node groups configuration involves deploying worker nodes within subnets of a VPC, ensuring they cannot directly access the public internet. All outbound traffic from these nodes is routed exclusively through a NAT gateway service. The default value is "false".
8181
* `security_groups` - (Optional) - Specifies the security group for your cluster. A security group acts as a virtual firewall, controlling inbound and outbound traffic for associated resources. You can find the Security Group ID on the vServer Portal and input it here.
8282
* `ssh_key_id` - (Required) - Specifies the SSH key for secure credentials to prove your identity when connecting to the server. You can import a key and get the SSH Key ID on the vServer Portal to input here
@@ -110,15 +110,15 @@ resource "vngcloud_vks_cluster_node_group" "primary" {
110110
upgrade_config {
111111
strategy = "SURGE"
112112
max_surge = 1
113-
max_unavailable = 0
113+
max_unavailable = 0
114114
}
115-
image_id = "img-108b3a77-ab58-4000-9b3e-190d0b4b07fc"
115+
image_id = "img-108b3a77-ab58-4000-9b3e-190d0b4b0123"
116116
flavor_id = "flav-9e88cfb4-ec31-4ad4-8ba5-243459f6d123"
117117
disk_size = 50
118-
disk_type = "vtype-61c3fc5b-f4e9-45b4-8957-8aa7b6029018"
118+
disk_type = "vtype-61c3fc5b-f4e9-45b4-8957-8aa7b6029123"
119119
enable_private_nodes = false
120120
ssh_key_id= "ssh-f923c53c-cba7-4131-9f86-175d04ae2123"
121-
security_groups = ["secg-faf05344-fbd6-4f10-80a2-cda08d15ba5e"]
121+
security_groups = ["secg-faf05344-fbd6-4f10-80a2-cda08d15b123"]
122122
labels = {
123123
"test" = "terraform"
124124
}
@@ -157,15 +157,15 @@ resource "vngcloud_vks_cluster_node_group" "primary" {
157157
upgrade_config {
158158
strategy = "SURGE"
159159
max_surge = 1
160-
max_unavailable = 0
160+
max_unavailable = 0
161161
}
162-
image_id = "img-108b3a77-ab58-4000-9b3e-190d0b4b07fc"
162+
image_id = "img-108b3a77-ab58-4000-9b3e-190d0b4b0123"
163163
flavor_id = "flav-9e88cfb4-ec31-4ad4-8ba5-243459f6d123"
164164
disk_size = 50
165-
disk_type = "vtype-61c3fc5b-f4e9-45b4-8957-8aa7b6029018"
165+
disk_type = "vtype-61c3fc5b-f4e9-45b4-8957-8aa7b6029123"
166166
enable_private_nodes = false
167167
ssh_key_id= "ssh-f923c53c-cba7-4131-9f86-175d04ae2123"
168-
security_groups = ["secg-faf05344-fbd6-4f10-80a2-cda08d15ba5e"]
168+
security_groups = ["secg-faf05344-fbd6-4f10-80a2-cda08d15b123"]
169169
labels = {
170170
"test" = "terraform"
171171
}

0 commit comments

Comments
 (0)