You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cluster_internet = false # (can be ignored) open it after the nodes added
834
+
cluster_version = "1.30.0"
835
+
cluster_os = "tlinux2.2(tkernel3)x86_64"
836
+
cluster_deploy_type = "MANAGED_CLUSTER"
837
+
container_runtime = "containerd"
838
+
docker_graph_path = "/var/lib/containerd"
839
+
# without any worker config
840
+
tags = {
841
+
"demo" = "test"
842
+
}
843
+
844
+
worker_config {
845
+
count = 1
846
+
availability_zone = var.availability_zone_first
847
+
instance_type = "SA2.MEDIUM2"
848
+
system_disk_type = "CLOUD_SSD"
849
+
system_disk_size = 60
850
+
internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR"
851
+
internet_max_bandwidth_out = 100
852
+
public_ip_assigned = true
853
+
subnet_id = local.first_subnet_id
854
+
855
+
data_disk {
856
+
disk_type = "CLOUD_PREMIUM"
857
+
disk_size = 50
858
+
}
859
+
860
+
enhanced_security_service = false
861
+
enhanced_monitor_service = false
862
+
user_data = "dGVzdA=="
863
+
disaster_recover_group_ids = []
864
+
security_group_ids = []
865
+
key_ids = []
866
+
cam_role_name = "CVM_QcsRole"
867
+
password = "ZZXXccvv1212" // Optional, should be set if key_ids not set.
868
+
}
869
+
870
+
resource_delete_options {
871
+
resource_type = "CBS"
872
+
delete_mode = "terminate"
873
+
}
874
+
}
875
+
```
876
+
821
877
## Argument Reference
822
878
823
879
The following arguments are supported:
@@ -873,6 +929,7 @@ The following arguments are supported:
873
929
*`node_pool_global_config` - (Optional, List) Global config effective for all node pools.
874
930
*`pre_start_user_script` - (Optional, String, ForceNew) Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
875
931
*`project_id` - (Optional, Int) Project ID, default value is 0.
932
+
*`resource_delete_options` - (Optional, Set) The resource deletion policy when the cluster is deleted. Currently, CBS is supported (CBS is retained by default). Only valid when deleting cluster.
*`service_cidr` - (Optional, String, ForceNew) A network address block of the service. Different from vpc cidr and cidr of other clusters within this vpc. Must be in 10./192.168/172.[16-31] segments.
878
935
*`tags` - (Optional, Map) The tags of the cluster.
@@ -994,6 +1051,12 @@ The `node_pool_global_config` object supports the following:
994
1051
*`skip_nodes_with_local_storage` - (Optional, Bool) During scale-in, ignore nodes with local storage pods.
995
1052
*`skip_nodes_with_system_pods` - (Optional, Bool) During scale-in, ignore nodes with pods in the kube-system namespace that are not managed by DaemonSet.
996
1053
1054
+
The `resource_delete_options` object supports the following:
1055
+
1056
+
*`delete_mode` - (Required, String) The deletion mode of CBS resources when the cluster is deleted, `terminate` (destroy), `retain` (retain). Other resources are deleted by default.
1057
+
*`resource_type` - (Required, String) Resource type, valid values are `CBS`, `CLB`, and `CVM`.
1058
+
*`skip_deletion_protection` - (Optional, Bool) Whether to skip resources with deletion protection enabled, the default is false.
1059
+
997
1060
The `worker_config` object supports the following:
998
1061
999
1062
*`instance_type` - (Required, String, ForceNew) Specified types of CVM instance.
0 commit comments