From 5445a25d4aa19532d3a2e8f43e493e88e92d32a1 Mon Sep 17 00:00:00 2001 From: "maoshuai.17" Date: Wed, 31 Jul 2024 15:07:52 +0800 Subject: [PATCH] feat: update vke node pool example --- example/vkeNodePool/main.tf | 23 +++++++++------------- website/docs/r/vke_node_pool.html.markdown | 11 +++-------- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/example/vkeNodePool/main.tf b/example/vkeNodePool/main.tf index 5f0e1049..505947c2 100644 --- a/example/vkeNodePool/main.tf +++ b/example/vkeNodePool/main.tf @@ -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 { diff --git a/website/docs/r/vke_node_pool.html.markdown b/website/docs/r/vke_node_pool.html.markdown index 0dbbb285..45c80d45 100644 --- a/website/docs/r/vke_node_pool.html.markdown +++ b/website/docs/r/vke_node_pool.html.markdown @@ -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 {