Skip to content

Commit

Permalink
Merge pull request #171 from volcengine/Feat/vke-nodepool
Browse files Browse the repository at this point in the history
feat: update vke node pool example
  • Loading branch information
msq177 authored Jul 31, 2024
2 parents 042db43 + 5445a25 commit 6aeb3f1
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 6aeb3f1

Please sign in to comment.