alicloud_eflo_cluster
Provides a Eflo Cluster resource.
Large computing cluster.
For information about Eflo Cluster and how to use it, see What is Cluster.
-> NOTE: Available since v1.246.0.
Example Usage
Basic Usage
# Before executing this example, you need to confirm with the product team whether the resources are sufficient or you will get an error message with "Failure to check order before create instance"
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
data "alicloud_resource_manager_resource_groups" "default" {}
resource "alicloud_vpc" "create_vpc" {
cidr_block = "192.168.0.0/16"
vpc_name = "cluster-resoure-example"
}
resource "alicloud_vswitch" "create_vswitch" {
vpc_id = alicloud_vpc.create_vpc.id
zone_id = "cn-hangzhou-b"
cidr_block = "192.168.0.0/24"
vswitch_name = "cluster-resoure-example"
}
resource "alicloud_security_group" "create_security_group" {
description = "sg"
security_group_name = "cluster-resoure-example"
security_group_type = "normal"
vpc_id = alicloud_vpc.create_vpc.id
}
resource "alicloud_eflo_cluster" "default" {
cluster_description = "cluster-resource-example"
open_eni_jumbo_frame = "false"
hpn_zone = "B1"
nimiz_vswitches = [
"1111"
]
ignore_failed_node_tasks = "true"
resource_group_id = data.alicloud_resource_manager_resource_groups.default.ids.1
node_groups {
image_id = "i198448731735114628708"
zone_id = "cn-hangzhou-b"
node_group_name = "cluster-resource-example"
node_group_description = "cluster-resource-example"
machine_type = "efg2.C48cA3sen"
}
networks {
tail_ip_version = "ipv4"
new_vpd_info {
monitor_vpc_id = alicloud_vpc.create_vpc.id
monitor_vswitch_id = alicloud_vswitch.create_vswitch.id
cen_id = "11111"
cloud_link_id = "1111"
vpd_cidr = "111"
vpd_subnets {
zone_id = "1111"
subnet_cidr = "111"
subnet_type = "111"
}
cloud_link_cidr = "169.254.128.0/23"
}
security_group_id = alicloud_security_group.create_security_group.id
vswitch_zone_id = "cn-hangzhou-b"
vpc_id = alicloud_vpc.create_vpc.id
vswitch_id = alicloud_vswitch.create_vswitch.id
vpd_info {
vpd_id = "111"
vpd_subnets = [
"111"
]
}
ip_allocation_policy {
bond_policy {
bond_default_subnet = "111"
bonds {
name = "111"
subnet = "111"
}
}
machine_type_policy {
bonds {
name = "111"
subnet = "111"
}
machine_type = "111"
}
node_policy {
bonds {
name = "111"
subnet = "111"
}
node_id = "111"
}
}
}
cluster_name = "tfacceflo7165"
cluster_type = "Lite"
}
Argument Reference
The following arguments are supported:
cluster_description
- (Optional, ForceNew) cluster descriptioncluster_name
- (Optional, ForceNew) ClusterNamecluster_type
- (Optional, ForceNew) cluster typecomponents
- (Optional, List) Component (software instance) Seecomponents
below.hpn_zone
- (Optional) Cluster Numberignore_failed_node_tasks
- (Optional) Whether to allow skipping failed nodes. Default value: Falsenetworks
- (Optional, List) Network Information Seenetworks
below.nimiz_vswitches
- (Optional, List) Node virtual switchnode_groups
- (Optional, List) Node Group List Seenode_groups
below.open_eni_jumbo_frame
- (Optional) Whether the network interface supports jumbo framesresource_group_id
- (Optional, Computed) The ID of the resource grouptags
- (Optional, Map) tag
components
The components supports the following:
component_config
- (Optional, List) Component Configuration Seecomponent_config
below.component_type
- (Optional) Component Type
components-component_config
The components-component_config supports the following:
basic_args
- (Optional) Component Basic Parametersnode_units
- (Optional, List) Node pool configuration, and is used to establish the corresponding relationship between node groups and node pools. When ComponentType = "ACKEdge" is required. Other values are empty.
networks
The networks supports the following:
ip_allocation_policy
- (Optional, List) IP allocation policy Seeip_allocation_policy
below.new_vpd_info
- (Optional, List) Vpd configuration information Seenew_vpd_info
below.security_group_id
- (Optional) Security group IDtail_ip_version
- (Optional) IP versionvswitch_id
- (Optional) Switch IDvswitch_zone_id
- (Optional) Switch ZoneIDvpc_id
- (Optional) VPC IDvpd_info
- (Optional, List) Multiplexing VPD information Seevpd_info
below.
networks-ip_allocation_policy
The networks-ip_allocation_policy supports the following:
bond_policy
- (Optional, List) Bond policy Seebond_policy
below.machine_type_policy
- (Optional, List) Model Assignment Policy Seemachine_type_policy
below.node_policy
- (Optional, List) Node allocation policy Seenode_policy
below.
networks-new_vpd_info
The networks-new_vpd_info supports the following:
cen_id
- (Optional) Cloud Enterprise Network IDcloud_link_cidr
- (Optional) Cloud chain cidrcloud_link_id
- (Optional) Cloud chain IDmonitor_vpc_id
- (Optional) Proprietary Networkmonitor_vswitch_id
- (Optional) Proprietary network switchvpd_cidr
- (Optional) Cluster network segmentvpd_subnets
- (Optional, List) Cluster Subnet Seevpd_subnets
below.
networks-vpd_info
The networks-vpd_info supports the following:
vpd_id
- (Optional) VPC IDvpd_subnets
- (Optional, List) List of cluster subnet ID
networks-new_vpd_info-vpd_subnets
The networks-new_vpd_info-vpd_subnets supports the following:
subnet_cidr
- (Optional) Subnet cidrsubnet_type
- (Optional) Subnet Typezone_id
- (Optional) Zone ID
networks-ip_allocation_policy-bond_policy
The networks-ip_allocation_policy-bond_policy supports the following:
bond_default_subnet
- (Optional) Default bond cluster subnetbonds
- (Optional, List) Bond information Seebonds
below.
networks-ip_allocation_policy-machine_type_policy
The networks-ip_allocation_policy-machine_type_policy supports the following:
bonds
- (Optional, List) Bond information Seebonds
below.machine_type
- (Optional) Model
networks-ip_allocation_policy-node_policy
The networks-ip_allocation_policy-node_policy supports the following:
bonds
- (Optional, List) Bond information Seebonds
below.node_id
- (Optional) Node ID
networks-ip_allocation_policy-node_policy-bonds
The networks-ip_allocation_policy-node_policy-bonds supports the following:
name
- (Optional) The bond namesubnet
- (Optional) IP source cluster subnet
networks-ip_allocation_policy-machine_type_policy-bonds
The networks-ip_allocation_policy-machine_type_policy-bonds supports the following:
name
- (Optional) The bond namesubnet
- (Optional) IP source cluster subnet
networks-ip_allocation_policy-bond_policy-bonds
The networks-ip_allocation_policy-bond_policy-bonds supports the following:
name
- (Optional) The bond namesubnet
- (Optional) IP source cluster subnet
node_groups
The node_groups supports the following:
image_id
- (Optional) System Image IDmachine_type
- (Optional) Modelnode_group_description
- (Optional) Node Group Descriptionnode_group_name
- (Optional) Node Group Namenodes
- (Optional, List) Node List Seenodes
below.user_data
- (Optional) Instance custom data. It needs to be encoded in Base64 mode, and the original data is at most 16KB.zone_id
- (Optional) Zone ID
node_groups-nodes
The node_groups-nodes supports the following:
hostname
- (Optional) Host namelogin_password
- (Optional) Login Passwordnode_id
- (Optional) Node IDvswitch_id
- (Optional) Virtual Switch IDvpc_id
- (Optional) VPC ID
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The creation time of the resourcestatus
- The status of the resource
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Cluster.delete
- (Defaults to 5 mins) Used when delete the Cluster.update
- (Defaults to 5 mins) Used when update the Cluster.
Import
Eflo Cluster can be imported using the id, e.g.
$ terraform import alicloud_eflo_cluster.example <id>
- 本页导读 (1)
- Example Usage
- Argument Reference
- components
- components-component_config
- networks
- networks-ip_allocation_policy
- networks-new_vpd_info
- networks-vpd_info
- networks-new_vpd_info-vpd_subnets
- networks-ip_allocation_policy-bond_policy
- networks-ip_allocation_policy-machine_type_policy
- networks-ip_allocation_policy-node_policy
- networks-ip_allocation_policy-node_policy-bonds
- networks-ip_allocation_policy-machine_type_policy-bonds
- networks-ip_allocation_policy-bond_policy-bonds
- node_groups
- node_groups-nodes
- Attributes Reference
- Timeouts
- Import