Skip to content

Commit

Permalink
feat: update vke node pool example
Browse files Browse the repository at this point in the history
  • Loading branch information
msq177 committed Jul 31, 2024
1 parent a45e13d commit 5445a25
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
23 changes: 9 additions & 14 deletions example/vkeNodePool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,15 @@ resource "volcengine_vke_node_pool" "foo1" {
instance_type_ids = ["ecs.g1ie.xlarge"]
subnet_ids = [volcengine_subnet.foo.id]
image_id = [for image in data.volcengine_images.foo.images : image.image_id if image.image_name == "veLinux 1.0 CentOS兼容版 64位"][0]
system_volume {
type = "ESSD_PL0"
size = 80
}
data_volumes {
type = "ESSD_PL0"
size = 80
mount_point = "/tf1"
}
data_volumes {
type = "ESSD_PL0"
size = 60
mount_point = "/tf2"
}
system_volume {
type = "ESSD_PL0"
size = "50"
}
data_volumes {
type = "ESSD_PL0"
size = "50"
mount_point = "/tf"
}
initialize_script = "ZWNobyBoZWxsbyB0ZXJyYWZvcm0h"
security {
login {
Expand Down
11 changes: 3 additions & 8 deletions website/docs/r/vke_node_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,12 @@ resource "volcengine_vke_node_pool" "foo1" {
image_id = [for image in data.volcengine_images.foo.images : image.image_id if image.image_name == "veLinux 1.0 CentOS兼容版 64位"][0]
system_volume {
type = "ESSD_PL0"
size = 80
}
data_volumes {
type = "ESSD_PL0"
size = 80
mount_point = "/tf1"
size = "50"
}
data_volumes {
type = "ESSD_PL0"
size = 60
mount_point = "/tf2"
size = "50"
mount_point = "/tf"
}
initialize_script = "ZWNobyBoZWxsbyB0ZXJyYWZvcm0h"
security {
Expand Down

0 comments on commit 5445a25

Please sign in to comment.