Provides a Ehpc Cluster V2 resource.
E-HPC Cluster Resources.
For information about Ehpc Cluster V2 and how to use it, see What is Cluster V2.
NOTE: Available since v1.266.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const example = new alicloud.vpc.Network("example", {
isDefault: false,
cidrBlock: "10.0.0.0/24",
vpcName: "example-cluster-vpc",
});
const exampleAccessGroup = new alicloud.nas.AccessGroup("example", {
accessGroupType: "Vpc",
description: name,
accessGroupName: "StandardMountTarget",
fileSystemType: "standard",
});
const exampleFileSystem = new alicloud.nas.FileSystem("example", {
description: "example-cluster-nas",
storageType: "Capacity",
nfsAcl: {
enabled: false,
},
zoneId: "cn-hangzhou-k",
encryptType: 0,
protocolType: "NFS",
fileSystemType: "standard",
});
const exampleSwitch = new alicloud.vpc.Switch("example", {
isDefault: false,
vpcId: example.id,
zoneId: "cn-hangzhou-k",
cidrBlock: "10.0.0.0/24",
vswitchName: "example-cluster-vsw",
});
const exampleAccessRule = new alicloud.nas.AccessRule("example", {
priority: 1,
accessGroupName: exampleAccessGroup.accessGroupName,
fileSystemType: exampleFileSystem.fileSystemType,
sourceCidrIp: "10.0.0.0/24",
});
const exampleSecurityGroup = new alicloud.ecs.SecurityGroup("example", {
vpcId: example.id,
securityGroupType: "normal",
});
const exampleMountTarget = new alicloud.nas.MountTarget("example", {
vpcId: example.id,
networkType: "Vpc",
accessGroupName: exampleAccessGroup.accessGroupName,
vswitchId: exampleSwitch.id,
fileSystemId: exampleFileSystem.id,
});
const _default = new alicloud.ehpc.ClusterV2("default", {
clusterCredentials: {
password: "aliHPC123",
},
clusterVpcId: example.id,
clusterCategory: "Standard",
clusterMode: "Integrated",
securityGroupId: exampleSecurityGroup.id,
clusterName: "minimal-example-cluster",
deletionProtection: true,
clientVersion: "2.0.47",
sharedStorages: [
{
mountDirectory: "/home",
nasDirectory: "/",
mountTargetDomain: exampleMountTarget.mountTargetDomain,
protocolType: "NFS",
fileSystemId: exampleFileSystem.id,
mountOptions: "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
{
mountDirectory: "/opt",
nasDirectory: "/",
mountTargetDomain: exampleMountTarget.mountTargetDomain,
protocolType: "NFS",
fileSystemId: exampleFileSystem.id,
mountOptions: "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
{
mountDirectory: "/ehpcdata",
nasDirectory: "/",
mountTargetDomain: exampleMountTarget.mountTargetDomain,
protocolType: "NFS",
fileSystemId: exampleFileSystem.id,
mountOptions: "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
],
clusterVswitchId: exampleSwitch.id,
manager: {
managerNode: {
systemDisk: {
category: "cloud_essd",
size: 40,
level: "PL0",
},
enableHt: true,
instanceChargeType: "PostPaid",
imageId: "centos_7_6_x64_20G_alibase_20211130.vhd",
spotPriceLimit: 0,
instanceType: "ecs.c6.xlarge",
spotStrategy: "NoSpot",
},
scheduler: {
type: "SLURM",
version: "22.05.8",
},
dns: {
type: "nis",
version: "1.0",
},
directoryService: {
type: "nis",
version: "1.0",
},
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
example = alicloud.vpc.Network("example",
is_default=False,
cidr_block="10.0.0.0/24",
vpc_name="example-cluster-vpc")
example_access_group = alicloud.nas.AccessGroup("example",
access_group_type="Vpc",
description=name,
access_group_name="StandardMountTarget",
file_system_type="standard")
example_file_system = alicloud.nas.FileSystem("example",
description="example-cluster-nas",
storage_type="Capacity",
nfs_acl={
"enabled": False,
},
zone_id="cn-hangzhou-k",
encrypt_type=0,
protocol_type="NFS",
file_system_type="standard")
example_switch = alicloud.vpc.Switch("example",
is_default=False,
vpc_id=example.id,
zone_id="cn-hangzhou-k",
cidr_block="10.0.0.0/24",
vswitch_name="example-cluster-vsw")
example_access_rule = alicloud.nas.AccessRule("example",
priority=1,
access_group_name=example_access_group.access_group_name,
file_system_type=example_file_system.file_system_type,
source_cidr_ip="10.0.0.0/24")
example_security_group = alicloud.ecs.SecurityGroup("example",
vpc_id=example.id,
security_group_type="normal")
example_mount_target = alicloud.nas.MountTarget("example",
vpc_id=example.id,
network_type="Vpc",
access_group_name=example_access_group.access_group_name,
vswitch_id=example_switch.id,
file_system_id=example_file_system.id)
default = alicloud.ehpc.ClusterV2("default",
cluster_credentials={
"password": "aliHPC123",
},
cluster_vpc_id=example.id,
cluster_category="Standard",
cluster_mode="Integrated",
security_group_id=example_security_group.id,
cluster_name="minimal-example-cluster",
deletion_protection=True,
client_version="2.0.47",
shared_storages=[
{
"mount_directory": "/home",
"nas_directory": "/",
"mount_target_domain": example_mount_target.mount_target_domain,
"protocol_type": "NFS",
"file_system_id": example_file_system.id,
"mount_options": "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
{
"mount_directory": "/opt",
"nas_directory": "/",
"mount_target_domain": example_mount_target.mount_target_domain,
"protocol_type": "NFS",
"file_system_id": example_file_system.id,
"mount_options": "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
{
"mount_directory": "/ehpcdata",
"nas_directory": "/",
"mount_target_domain": example_mount_target.mount_target_domain,
"protocol_type": "NFS",
"file_system_id": example_file_system.id,
"mount_options": "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
],
cluster_vswitch_id=example_switch.id,
manager={
"manager_node": {
"system_disk": {
"category": "cloud_essd",
"size": 40,
"level": "PL0",
},
"enable_ht": True,
"instance_charge_type": "PostPaid",
"image_id": "centos_7_6_x64_20G_alibase_20211130.vhd",
"spot_price_limit": 0,
"instance_type": "ecs.c6.xlarge",
"spot_strategy": "NoSpot",
},
"scheduler": {
"type": "SLURM",
"version": "22.05.8",
},
"dns": {
"type": "nis",
"version": "1.0",
},
"directory_service": {
"type": "nis",
"version": "1.0",
},
})
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ehpc"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
example, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
IsDefault: pulumi.Bool(false),
CidrBlock: pulumi.String("10.0.0.0/24"),
VpcName: pulumi.String("example-cluster-vpc"),
})
if err != nil {
return err
}
exampleAccessGroup, err := nas.NewAccessGroup(ctx, "example", &nas.AccessGroupArgs{
AccessGroupType: pulumi.String("Vpc"),
Description: pulumi.String(name),
AccessGroupName: pulumi.String("StandardMountTarget"),
FileSystemType: pulumi.String("standard"),
})
if err != nil {
return err
}
exampleFileSystem, err := nas.NewFileSystem(ctx, "example", &nas.FileSystemArgs{
Description: pulumi.String("example-cluster-nas"),
StorageType: pulumi.String("Capacity"),
NfsAcl: &nas.FileSystemNfsAclArgs{
Enabled: pulumi.Bool(false),
},
ZoneId: pulumi.String("cn-hangzhou-k"),
EncryptType: pulumi.Int(0),
ProtocolType: pulumi.String("NFS"),
FileSystemType: pulumi.String("standard"),
})
if err != nil {
return err
}
exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
IsDefault: pulumi.Bool(false),
VpcId: example.ID(),
ZoneId: pulumi.String("cn-hangzhou-k"),
CidrBlock: pulumi.String("10.0.0.0/24"),
VswitchName: pulumi.String("example-cluster-vsw"),
})
if err != nil {
return err
}
_, err = nas.NewAccessRule(ctx, "example", &nas.AccessRuleArgs{
Priority: pulumi.Int(1),
AccessGroupName: exampleAccessGroup.AccessGroupName,
FileSystemType: exampleFileSystem.FileSystemType,
SourceCidrIp: pulumi.String("10.0.0.0/24"),
})
if err != nil {
return err
}
exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
VpcId: example.ID(),
SecurityGroupType: pulumi.String("normal"),
})
if err != nil {
return err
}
exampleMountTarget, err := nas.NewMountTarget(ctx, "example", &nas.MountTargetArgs{
VpcId: example.ID(),
NetworkType: pulumi.String("Vpc"),
AccessGroupName: exampleAccessGroup.AccessGroupName,
VswitchId: exampleSwitch.ID(),
FileSystemId: exampleFileSystem.ID(),
})
if err != nil {
return err
}
_, err = ehpc.NewClusterV2(ctx, "default", &ehpc.ClusterV2Args{
ClusterCredentials: &ehpc.ClusterV2ClusterCredentialsArgs{
Password: pulumi.String("aliHPC123"),
},
ClusterVpcId: example.ID(),
ClusterCategory: pulumi.String("Standard"),
ClusterMode: pulumi.String("Integrated"),
SecurityGroupId: exampleSecurityGroup.ID(),
ClusterName: pulumi.String("minimal-example-cluster"),
DeletionProtection: pulumi.Bool(true),
ClientVersion: pulumi.String("2.0.47"),
SharedStorages: ehpc.ClusterV2SharedStorageArray{
&ehpc.ClusterV2SharedStorageArgs{
MountDirectory: pulumi.String("/home"),
NasDirectory: pulumi.String("/"),
MountTargetDomain: exampleMountTarget.MountTargetDomain,
ProtocolType: pulumi.String("NFS"),
FileSystemId: exampleFileSystem.ID(),
MountOptions: pulumi.String("-t nfs -o vers=3,nolock,proto=tcp,noresvport"),
},
&ehpc.ClusterV2SharedStorageArgs{
MountDirectory: pulumi.String("/opt"),
NasDirectory: pulumi.String("/"),
MountTargetDomain: exampleMountTarget.MountTargetDomain,
ProtocolType: pulumi.String("NFS"),
FileSystemId: exampleFileSystem.ID(),
MountOptions: pulumi.String("-t nfs -o vers=3,nolock,proto=tcp,noresvport"),
},
&ehpc.ClusterV2SharedStorageArgs{
MountDirectory: pulumi.String("/ehpcdata"),
NasDirectory: pulumi.String("/"),
MountTargetDomain: exampleMountTarget.MountTargetDomain,
ProtocolType: pulumi.String("NFS"),
FileSystemId: exampleFileSystem.ID(),
MountOptions: pulumi.String("-t nfs -o vers=3,nolock,proto=tcp,noresvport"),
},
},
ClusterVswitchId: exampleSwitch.ID(),
Manager: &ehpc.ClusterV2ManagerArgs{
ManagerNode: &ehpc.ClusterV2ManagerManagerNodeArgs{
SystemDisk: &ehpc.ClusterV2ManagerManagerNodeSystemDiskArgs{
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(40),
Level: pulumi.String("PL0"),
},
EnableHt: pulumi.Bool(true),
InstanceChargeType: pulumi.String("PostPaid"),
ImageId: pulumi.String("centos_7_6_x64_20G_alibase_20211130.vhd"),
SpotPriceLimit: pulumi.Float64(0),
InstanceType: pulumi.String("ecs.c6.xlarge"),
SpotStrategy: pulumi.String("NoSpot"),
},
Scheduler: &ehpc.ClusterV2ManagerSchedulerArgs{
Type: pulumi.String("SLURM"),
Version: pulumi.String("22.05.8"),
},
Dns: &ehpc.ClusterV2ManagerDnsArgs{
Type: pulumi.String("nis"),
Version: pulumi.String("1.0"),
},
DirectoryService: &ehpc.ClusterV2ManagerDirectoryServiceArgs{
Type: pulumi.String("nis"),
Version: pulumi.String("1.0"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var example = new AliCloud.Vpc.Network("example", new()
{
IsDefault = false,
CidrBlock = "10.0.0.0/24",
VpcName = "example-cluster-vpc",
});
var exampleAccessGroup = new AliCloud.Nas.AccessGroup("example", new()
{
AccessGroupType = "Vpc",
Description = name,
AccessGroupName = "StandardMountTarget",
FileSystemType = "standard",
});
var exampleFileSystem = new AliCloud.Nas.FileSystem("example", new()
{
Description = "example-cluster-nas",
StorageType = "Capacity",
NfsAcl = new AliCloud.Nas.Inputs.FileSystemNfsAclArgs
{
Enabled = false,
},
ZoneId = "cn-hangzhou-k",
EncryptType = 0,
ProtocolType = "NFS",
FileSystemType = "standard",
});
var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
{
IsDefault = false,
VpcId = example.Id,
ZoneId = "cn-hangzhou-k",
CidrBlock = "10.0.0.0/24",
VswitchName = "example-cluster-vsw",
});
var exampleAccessRule = new AliCloud.Nas.AccessRule("example", new()
{
Priority = 1,
AccessGroupName = exampleAccessGroup.AccessGroupName,
FileSystemType = exampleFileSystem.FileSystemType,
SourceCidrIp = "10.0.0.0/24",
});
var exampleSecurityGroup = new AliCloud.Ecs.SecurityGroup("example", new()
{
VpcId = example.Id,
SecurityGroupType = "normal",
});
var exampleMountTarget = new AliCloud.Nas.MountTarget("example", new()
{
VpcId = example.Id,
NetworkType = "Vpc",
AccessGroupName = exampleAccessGroup.AccessGroupName,
VswitchId = exampleSwitch.Id,
FileSystemId = exampleFileSystem.Id,
});
var @default = new AliCloud.Ehpc.ClusterV2("default", new()
{
ClusterCredentials = new AliCloud.Ehpc.Inputs.ClusterV2ClusterCredentialsArgs
{
Password = "aliHPC123",
},
ClusterVpcId = example.Id,
ClusterCategory = "Standard",
ClusterMode = "Integrated",
SecurityGroupId = exampleSecurityGroup.Id,
ClusterName = "minimal-example-cluster",
DeletionProtection = true,
ClientVersion = "2.0.47",
SharedStorages = new[]
{
new AliCloud.Ehpc.Inputs.ClusterV2SharedStorageArgs
{
MountDirectory = "/home",
NasDirectory = "/",
MountTargetDomain = exampleMountTarget.MountTargetDomain,
ProtocolType = "NFS",
FileSystemId = exampleFileSystem.Id,
MountOptions = "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
new AliCloud.Ehpc.Inputs.ClusterV2SharedStorageArgs
{
MountDirectory = "/opt",
NasDirectory = "/",
MountTargetDomain = exampleMountTarget.MountTargetDomain,
ProtocolType = "NFS",
FileSystemId = exampleFileSystem.Id,
MountOptions = "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
new AliCloud.Ehpc.Inputs.ClusterV2SharedStorageArgs
{
MountDirectory = "/ehpcdata",
NasDirectory = "/",
MountTargetDomain = exampleMountTarget.MountTargetDomain,
ProtocolType = "NFS",
FileSystemId = exampleFileSystem.Id,
MountOptions = "-t nfs -o vers=3,nolock,proto=tcp,noresvport",
},
},
ClusterVswitchId = exampleSwitch.Id,
Manager = new AliCloud.Ehpc.Inputs.ClusterV2ManagerArgs
{
ManagerNode = new AliCloud.Ehpc.Inputs.ClusterV2ManagerManagerNodeArgs
{
SystemDisk = new AliCloud.Ehpc.Inputs.ClusterV2ManagerManagerNodeSystemDiskArgs
{
Category = "cloud_essd",
Size = 40,
Level = "PL0",
},
EnableHt = true,
InstanceChargeType = "PostPaid",
ImageId = "centos_7_6_x64_20G_alibase_20211130.vhd",
SpotPriceLimit = 0,
InstanceType = "ecs.c6.xlarge",
SpotStrategy = "NoSpot",
},
Scheduler = new AliCloud.Ehpc.Inputs.ClusterV2ManagerSchedulerArgs
{
Type = "SLURM",
Version = "22.05.8",
},
Dns = new AliCloud.Ehpc.Inputs.ClusterV2ManagerDnsArgs
{
Type = "nis",
Version = "1.0",
},
DirectoryService = new AliCloud.Ehpc.Inputs.ClusterV2ManagerDirectoryServiceArgs
{
Type = "nis",
Version = "1.0",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.nas.AccessGroup;
import com.pulumi.alicloud.nas.AccessGroupArgs;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.nas.inputs.FileSystemNfsAclArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.nas.AccessRule;
import com.pulumi.alicloud.nas.AccessRuleArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.nas.MountTarget;
import com.pulumi.alicloud.nas.MountTargetArgs;
import com.pulumi.alicloud.ehpc.ClusterV2;
import com.pulumi.alicloud.ehpc.ClusterV2Args;
import com.pulumi.alicloud.ehpc.inputs.ClusterV2ClusterCredentialsArgs;
import com.pulumi.alicloud.ehpc.inputs.ClusterV2SharedStorageArgs;
import com.pulumi.alicloud.ehpc.inputs.ClusterV2ManagerArgs;
import com.pulumi.alicloud.ehpc.inputs.ClusterV2ManagerManagerNodeArgs;
import com.pulumi.alicloud.ehpc.inputs.ClusterV2ManagerManagerNodeSystemDiskArgs;
import com.pulumi.alicloud.ehpc.inputs.ClusterV2ManagerSchedulerArgs;
import com.pulumi.alicloud.ehpc.inputs.ClusterV2ManagerDnsArgs;
import com.pulumi.alicloud.ehpc.inputs.ClusterV2ManagerDirectoryServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var example = new Network("example", NetworkArgs.builder()
.isDefault(false)
.cidrBlock("10.0.0.0/24")
.vpcName("example-cluster-vpc")
.build());
var exampleAccessGroup = new AccessGroup("exampleAccessGroup", AccessGroupArgs.builder()
.accessGroupType("Vpc")
.description(name)
.accessGroupName("StandardMountTarget")
.fileSystemType("standard")
.build());
var exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()
.description("example-cluster-nas")
.storageType("Capacity")
.nfsAcl(FileSystemNfsAclArgs.builder()
.enabled(false)
.build())
.zoneId("cn-hangzhou-k")
.encryptType(0)
.protocolType("NFS")
.fileSystemType("standard")
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.isDefault(false)
.vpcId(example.id())
.zoneId("cn-hangzhou-k")
.cidrBlock("10.0.0.0/24")
.vswitchName("example-cluster-vsw")
.build());
var exampleAccessRule = new AccessRule("exampleAccessRule", AccessRuleArgs.builder()
.priority(1)
.accessGroupName(exampleAccessGroup.accessGroupName())
.fileSystemType(exampleFileSystem.fileSystemType())
.sourceCidrIp("10.0.0.0/24")
.build());
var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
.vpcId(example.id())
.securityGroupType("normal")
.build());
var exampleMountTarget = new MountTarget("exampleMountTarget", MountTargetArgs.builder()
.vpcId(example.id())
.networkType("Vpc")
.accessGroupName(exampleAccessGroup.accessGroupName())
.vswitchId(exampleSwitch.id())
.fileSystemId(exampleFileSystem.id())
.build());
var default_ = new ClusterV2("default", ClusterV2Args.builder()
.clusterCredentials(ClusterV2ClusterCredentialsArgs.builder()
.password("aliHPC123")
.build())
.clusterVpcId(example.id())
.clusterCategory("Standard")
.clusterMode("Integrated")
.securityGroupId(exampleSecurityGroup.id())
.clusterName("minimal-example-cluster")
.deletionProtection(true)
.clientVersion("2.0.47")
.sharedStorages(
ClusterV2SharedStorageArgs.builder()
.mountDirectory("/home")
.nasDirectory("/")
.mountTargetDomain(exampleMountTarget.mountTargetDomain())
.protocolType("NFS")
.fileSystemId(exampleFileSystem.id())
.mountOptions("-t nfs -o vers=3,nolock,proto=tcp,noresvport")
.build(),
ClusterV2SharedStorageArgs.builder()
.mountDirectory("/opt")
.nasDirectory("/")
.mountTargetDomain(exampleMountTarget.mountTargetDomain())
.protocolType("NFS")
.fileSystemId(exampleFileSystem.id())
.mountOptions("-t nfs -o vers=3,nolock,proto=tcp,noresvport")
.build(),
ClusterV2SharedStorageArgs.builder()
.mountDirectory("/ehpcdata")
.nasDirectory("/")
.mountTargetDomain(exampleMountTarget.mountTargetDomain())
.protocolType("NFS")
.fileSystemId(exampleFileSystem.id())
.mountOptions("-t nfs -o vers=3,nolock,proto=tcp,noresvport")
.build())
.clusterVswitchId(exampleSwitch.id())
.manager(ClusterV2ManagerArgs.builder()
.managerNode(ClusterV2ManagerManagerNodeArgs.builder()
.systemDisk(ClusterV2ManagerManagerNodeSystemDiskArgs.builder()
.category("cloud_essd")
.size(40)
.level("PL0")
.build())
.enableHt(true)
.instanceChargeType("PostPaid")
.imageId("centos_7_6_x64_20G_alibase_20211130.vhd")
.spotPriceLimit(0.0)
.instanceType("ecs.c6.xlarge")
.spotStrategy("NoSpot")
.build())
.scheduler(ClusterV2ManagerSchedulerArgs.builder()
.type("SLURM")
.version("22.05.8")
.build())
.dns(ClusterV2ManagerDnsArgs.builder()
.type("nis")
.version("1.0")
.build())
.directoryService(ClusterV2ManagerDirectoryServiceArgs.builder()
.type("nis")
.version("1.0")
.build())
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
example:
type: alicloud:vpc:Network
properties:
isDefault: false
cidrBlock: 10.0.0.0/24
vpcName: example-cluster-vpc
exampleAccessGroup:
type: alicloud:nas:AccessGroup
name: example
properties:
accessGroupType: Vpc
description: ${name}
accessGroupName: StandardMountTarget
fileSystemType: standard
exampleFileSystem:
type: alicloud:nas:FileSystem
name: example
properties:
description: example-cluster-nas
storageType: Capacity
nfsAcl:
enabled: false
zoneId: cn-hangzhou-k
encryptType: '0'
protocolType: NFS
fileSystemType: standard
exampleSwitch:
type: alicloud:vpc:Switch
name: example
properties:
isDefault: false
vpcId: ${example.id}
zoneId: cn-hangzhou-k
cidrBlock: 10.0.0.0/24
vswitchName: example-cluster-vsw
exampleAccessRule:
type: alicloud:nas:AccessRule
name: example
properties:
priority: '1'
accessGroupName: ${exampleAccessGroup.accessGroupName}
fileSystemType: ${exampleFileSystem.fileSystemType}
sourceCidrIp: 10.0.0.0/24
exampleSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: example
properties:
vpcId: ${example.id}
securityGroupType: normal
exampleMountTarget:
type: alicloud:nas:MountTarget
name: example
properties:
vpcId: ${example.id}
networkType: Vpc
accessGroupName: ${exampleAccessGroup.accessGroupName}
vswitchId: ${exampleSwitch.id}
fileSystemId: ${exampleFileSystem.id}
default:
type: alicloud:ehpc:ClusterV2
properties:
clusterCredentials:
password: aliHPC123
clusterVpcId: ${example.id}
clusterCategory: Standard
clusterMode: Integrated
securityGroupId: ${exampleSecurityGroup.id}
clusterName: minimal-example-cluster
deletionProtection: true
clientVersion: 2.0.47
sharedStorages:
- mountDirectory: /home
nasDirectory: /
mountTargetDomain: ${exampleMountTarget.mountTargetDomain}
protocolType: NFS
fileSystemId: ${exampleFileSystem.id}
mountOptions: -t nfs -o vers=3,nolock,proto=tcp,noresvport
- mountDirectory: /opt
nasDirectory: /
mountTargetDomain: ${exampleMountTarget.mountTargetDomain}
protocolType: NFS
fileSystemId: ${exampleFileSystem.id}
mountOptions: -t nfs -o vers=3,nolock,proto=tcp,noresvport
- mountDirectory: /ehpcdata
nasDirectory: /
mountTargetDomain: ${exampleMountTarget.mountTargetDomain}
protocolType: NFS
fileSystemId: ${exampleFileSystem.id}
mountOptions: -t nfs -o vers=3,nolock,proto=tcp,noresvport
clusterVswitchId: ${exampleSwitch.id}
manager:
managerNode:
systemDisk:
category: cloud_essd
size: '40'
level: PL0
enableHt: true
instanceChargeType: PostPaid
imageId: centos_7_6_x64_20G_alibase_20211130.vhd
spotPriceLimit: 0
instanceType: ecs.c6.xlarge
spotStrategy: NoSpot
scheduler:
type: SLURM
version: 22.05.8
dns:
type: nis
version: '1.0'
directoryService:
type: nis
version: '1.0'
📚 Need more examples? VIEW MORE EXAMPLES
Create ClusterV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterV2(name: string, args: ClusterV2Args, opts?: CustomResourceOptions);@overload
def ClusterV2(resource_name: str,
args: ClusterV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_credentials: Optional[ClusterV2ClusterCredentialsArgs] = None,
shared_storages: Optional[Sequence[ClusterV2SharedStorageArgs]] = None,
cluster_vpc_id: Optional[str] = None,
cluster_category: Optional[str] = None,
cluster_mode: Optional[str] = None,
cluster_name: Optional[str] = None,
addons: Optional[Sequence[ClusterV2AddonArgs]] = None,
cluster_vswitch_id: Optional[str] = None,
deletion_protection: Optional[bool] = None,
manager: Optional[ClusterV2ManagerArgs] = None,
resource_group_id: Optional[str] = None,
security_group_id: Optional[str] = None,
client_version: Optional[str] = None)func NewClusterV2(ctx *Context, name string, args ClusterV2Args, opts ...ResourceOption) (*ClusterV2, error)public ClusterV2(string name, ClusterV2Args args, CustomResourceOptions? opts = null)
public ClusterV2(String name, ClusterV2Args args)
public ClusterV2(String name, ClusterV2Args args, CustomResourceOptions options)
type: alicloud:ehpc:ClusterV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var clusterV2Resource = new AliCloud.Ehpc.ClusterV2("clusterV2Resource", new()
{
ClusterCredentials = new AliCloud.Ehpc.Inputs.ClusterV2ClusterCredentialsArgs
{
Password = "string",
},
SharedStorages = new[]
{
new AliCloud.Ehpc.Inputs.ClusterV2SharedStorageArgs
{
FileSystemId = "string",
MountDirectory = "string",
MountOptions = "string",
MountTargetDomain = "string",
NasDirectory = "string",
ProtocolType = "string",
},
},
ClusterVpcId = "string",
ClusterCategory = "string",
ClusterMode = "string",
ClusterName = "string",
Addons = new[]
{
new AliCloud.Ehpc.Inputs.ClusterV2AddonArgs
{
Name = "string",
Version = "string",
ResourcesSpec = "string",
ServicesSpec = "string",
},
},
ClusterVswitchId = "string",
DeletionProtection = false,
Manager = new AliCloud.Ehpc.Inputs.ClusterV2ManagerArgs
{
DirectoryService = new AliCloud.Ehpc.Inputs.ClusterV2ManagerDirectoryServiceArgs
{
Type = "string",
Version = "string",
},
Dns = new AliCloud.Ehpc.Inputs.ClusterV2ManagerDnsArgs
{
Type = "string",
Version = "string",
},
ManagerNode = new AliCloud.Ehpc.Inputs.ClusterV2ManagerManagerNodeArgs
{
AutoRenew = false,
AutoRenewPeriod = 0,
Duration = 0,
EnableHt = false,
ExpiredTime = "string",
ImageId = "string",
InstanceChargeType = "string",
InstanceId = "string",
InstanceType = "string",
Period = 0,
PeriodUnit = "string",
SpotPriceLimit = 0,
SpotStrategy = "string",
SystemDisk = new AliCloud.Ehpc.Inputs.ClusterV2ManagerManagerNodeSystemDiskArgs
{
Category = "string",
Level = "string",
Size = 0,
},
},
Scheduler = new AliCloud.Ehpc.Inputs.ClusterV2ManagerSchedulerArgs
{
Type = "string",
Version = "string",
},
},
ResourceGroupId = "string",
SecurityGroupId = "string",
ClientVersion = "string",
});
example, err := ehpc.NewClusterV2(ctx, "clusterV2Resource", &ehpc.ClusterV2Args{
ClusterCredentials: &ehpc.ClusterV2ClusterCredentialsArgs{
Password: pulumi.String("string"),
},
SharedStorages: ehpc.ClusterV2SharedStorageArray{
&ehpc.ClusterV2SharedStorageArgs{
FileSystemId: pulumi.String("string"),
MountDirectory: pulumi.String("string"),
MountOptions: pulumi.String("string"),
MountTargetDomain: pulumi.String("string"),
NasDirectory: pulumi.String("string"),
ProtocolType: pulumi.String("string"),
},
},
ClusterVpcId: pulumi.String("string"),
ClusterCategory: pulumi.String("string"),
ClusterMode: pulumi.String("string"),
ClusterName: pulumi.String("string"),
Addons: ehpc.ClusterV2AddonArray{
&ehpc.ClusterV2AddonArgs{
Name: pulumi.String("string"),
Version: pulumi.String("string"),
ResourcesSpec: pulumi.String("string"),
ServicesSpec: pulumi.String("string"),
},
},
ClusterVswitchId: pulumi.String("string"),
DeletionProtection: pulumi.Bool(false),
Manager: &ehpc.ClusterV2ManagerArgs{
DirectoryService: &ehpc.ClusterV2ManagerDirectoryServiceArgs{
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
Dns: &ehpc.ClusterV2ManagerDnsArgs{
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
ManagerNode: &ehpc.ClusterV2ManagerManagerNodeArgs{
AutoRenew: pulumi.Bool(false),
AutoRenewPeriod: pulumi.Int(0),
Duration: pulumi.Int(0),
EnableHt: pulumi.Bool(false),
ExpiredTime: pulumi.String("string"),
ImageId: pulumi.String("string"),
InstanceChargeType: pulumi.String("string"),
InstanceId: pulumi.String("string"),
InstanceType: pulumi.String("string"),
Period: pulumi.Int(0),
PeriodUnit: pulumi.String("string"),
SpotPriceLimit: pulumi.Float64(0),
SpotStrategy: pulumi.String("string"),
SystemDisk: &ehpc.ClusterV2ManagerManagerNodeSystemDiskArgs{
Category: pulumi.String("string"),
Level: pulumi.String("string"),
Size: pulumi.Int(0),
},
},
Scheduler: &ehpc.ClusterV2ManagerSchedulerArgs{
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
},
ResourceGroupId: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
ClientVersion: pulumi.String("string"),
})
var clusterV2Resource = new ClusterV2("clusterV2Resource", ClusterV2Args.builder()
.clusterCredentials(ClusterV2ClusterCredentialsArgs.builder()
.password("string")
.build())
.sharedStorages(ClusterV2SharedStorageArgs.builder()
.fileSystemId("string")
.mountDirectory("string")
.mountOptions("string")
.mountTargetDomain("string")
.nasDirectory("string")
.protocolType("string")
.build())
.clusterVpcId("string")
.clusterCategory("string")
.clusterMode("string")
.clusterName("string")
.addons(ClusterV2AddonArgs.builder()
.name("string")
.version("string")
.resourcesSpec("string")
.servicesSpec("string")
.build())
.clusterVswitchId("string")
.deletionProtection(false)
.manager(ClusterV2ManagerArgs.builder()
.directoryService(ClusterV2ManagerDirectoryServiceArgs.builder()
.type("string")
.version("string")
.build())
.dns(ClusterV2ManagerDnsArgs.builder()
.type("string")
.version("string")
.build())
.managerNode(ClusterV2ManagerManagerNodeArgs.builder()
.autoRenew(false)
.autoRenewPeriod(0)
.duration(0)
.enableHt(false)
.expiredTime("string")
.imageId("string")
.instanceChargeType("string")
.instanceId("string")
.instanceType("string")
.period(0)
.periodUnit("string")
.spotPriceLimit(0.0)
.spotStrategy("string")
.systemDisk(ClusterV2ManagerManagerNodeSystemDiskArgs.builder()
.category("string")
.level("string")
.size(0)
.build())
.build())
.scheduler(ClusterV2ManagerSchedulerArgs.builder()
.type("string")
.version("string")
.build())
.build())
.resourceGroupId("string")
.securityGroupId("string")
.clientVersion("string")
.build());
cluster_v2_resource = alicloud.ehpc.ClusterV2("clusterV2Resource",
cluster_credentials={
"password": "string",
},
shared_storages=[{
"file_system_id": "string",
"mount_directory": "string",
"mount_options": "string",
"mount_target_domain": "string",
"nas_directory": "string",
"protocol_type": "string",
}],
cluster_vpc_id="string",
cluster_category="string",
cluster_mode="string",
cluster_name="string",
addons=[{
"name": "string",
"version": "string",
"resources_spec": "string",
"services_spec": "string",
}],
cluster_vswitch_id="string",
deletion_protection=False,
manager={
"directory_service": {
"type": "string",
"version": "string",
},
"dns": {
"type": "string",
"version": "string",
},
"manager_node": {
"auto_renew": False,
"auto_renew_period": 0,
"duration": 0,
"enable_ht": False,
"expired_time": "string",
"image_id": "string",
"instance_charge_type": "string",
"instance_id": "string",
"instance_type": "string",
"period": 0,
"period_unit": "string",
"spot_price_limit": 0,
"spot_strategy": "string",
"system_disk": {
"category": "string",
"level": "string",
"size": 0,
},
},
"scheduler": {
"type": "string",
"version": "string",
},
},
resource_group_id="string",
security_group_id="string",
client_version="string")
const clusterV2Resource = new alicloud.ehpc.ClusterV2("clusterV2Resource", {
clusterCredentials: {
password: "string",
},
sharedStorages: [{
fileSystemId: "string",
mountDirectory: "string",
mountOptions: "string",
mountTargetDomain: "string",
nasDirectory: "string",
protocolType: "string",
}],
clusterVpcId: "string",
clusterCategory: "string",
clusterMode: "string",
clusterName: "string",
addons: [{
name: "string",
version: "string",
resourcesSpec: "string",
servicesSpec: "string",
}],
clusterVswitchId: "string",
deletionProtection: false,
manager: {
directoryService: {
type: "string",
version: "string",
},
dns: {
type: "string",
version: "string",
},
managerNode: {
autoRenew: false,
autoRenewPeriod: 0,
duration: 0,
enableHt: false,
expiredTime: "string",
imageId: "string",
instanceChargeType: "string",
instanceId: "string",
instanceType: "string",
period: 0,
periodUnit: "string",
spotPriceLimit: 0,
spotStrategy: "string",
systemDisk: {
category: "string",
level: "string",
size: 0,
},
},
scheduler: {
type: "string",
version: "string",
},
},
resourceGroupId: "string",
securityGroupId: "string",
clientVersion: "string",
});
type: alicloud:ehpc:ClusterV2
properties:
addons:
- name: string
resourcesSpec: string
servicesSpec: string
version: string
clientVersion: string
clusterCategory: string
clusterCredentials:
password: string
clusterMode: string
clusterName: string
clusterVpcId: string
clusterVswitchId: string
deletionProtection: false
manager:
directoryService:
type: string
version: string
dns:
type: string
version: string
managerNode:
autoRenew: false
autoRenewPeriod: 0
duration: 0
enableHt: false
expiredTime: string
imageId: string
instanceChargeType: string
instanceId: string
instanceType: string
period: 0
periodUnit: string
spotPriceLimit: 0
spotStrategy: string
systemDisk:
category: string
level: string
size: 0
scheduler:
type: string
version: string
resourceGroupId: string
securityGroupId: string
sharedStorages:
- fileSystemId: string
mountDirectory: string
mountOptions: string
mountTargetDomain: string
nasDirectory: string
protocolType: string
ClusterV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ClusterV2 resource accepts the following input properties:
- Cluster
Credentials Pulumi.Ali Cloud. Ehpc. Inputs. Cluster V2Cluster Credentials - Security credentials for the cluster. See
cluster_credentialsbelow. -
List<Pulumi.
Ali Cloud. Ehpc. Inputs. Cluster V2Shared Storage> - List of cluster shared storage configurations. See
shared_storagesbelow. - Addons
List<Pulumi.
Ali Cloud. Ehpc. Inputs. Cluster V2Addon> - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - Client
Version string - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- Cluster
Category string - The cluster type. Valid values:
- Standard
- Serverless
- Cluster
Mode string - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- Cluster
Name string - The post-processing script of the cluster.
- Cluster
Vpc stringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- Cluster
Vswitch stringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - Deletion
Protection bool - The idle duration of the compute nodes allowed by the cluster.
- Manager
Pulumi.
Ali Cloud. Ehpc. Inputs. Cluster V2Manager - The configurations of the cluster management node. See
managerbelow. - Resource
Group stringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- Security
Group stringId - The security group ID.
- Cluster
Credentials ClusterV2Cluster Credentials Args - Security credentials for the cluster. See
cluster_credentialsbelow. -
[]Cluster
V2Shared Storage Args - List of cluster shared storage configurations. See
shared_storagesbelow. - Addons
[]Cluster
V2Addon Args - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - Client
Version string - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- Cluster
Category string - The cluster type. Valid values:
- Standard
- Serverless
- Cluster
Mode string - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- Cluster
Name string - The post-processing script of the cluster.
- Cluster
Vpc stringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- Cluster
Vswitch stringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - Deletion
Protection bool - The idle duration of the compute nodes allowed by the cluster.
- Manager
Cluster
V2Manager Args - The configurations of the cluster management node. See
managerbelow. - Resource
Group stringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- Security
Group stringId - The security group ID.
- cluster
Credentials ClusterV2Cluster Credentials - Security credentials for the cluster. See
cluster_credentialsbelow. -
List<Cluster
V2Shared Storage> - List of cluster shared storage configurations. See
shared_storagesbelow. - addons
List<Cluster
V2Addon> - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - client
Version String - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- cluster
Category String - The cluster type. Valid values:
- Standard
- Serverless
- cluster
Mode String - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- cluster
Name String - The post-processing script of the cluster.
- cluster
Vpc StringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- cluster
Vswitch StringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - deletion
Protection Boolean - The idle duration of the compute nodes allowed by the cluster.
- manager
Cluster
V2Manager - The configurations of the cluster management node. See
managerbelow. - resource
Group StringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- security
Group StringId - The security group ID.
- cluster
Credentials ClusterV2Cluster Credentials - Security credentials for the cluster. See
cluster_credentialsbelow. -
Cluster
V2Shared Storage[] - List of cluster shared storage configurations. See
shared_storagesbelow. - addons
Cluster
V2Addon[] - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - client
Version string - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- cluster
Category string - The cluster type. Valid values:
- Standard
- Serverless
- cluster
Mode string - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- cluster
Name string - The post-processing script of the cluster.
- cluster
Vpc stringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- cluster
Vswitch stringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - deletion
Protection boolean - The idle duration of the compute nodes allowed by the cluster.
- manager
Cluster
V2Manager - The configurations of the cluster management node. See
managerbelow. - resource
Group stringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- security
Group stringId - The security group ID.
- cluster_
credentials ClusterV2Cluster Credentials Args - Security credentials for the cluster. See
cluster_credentialsbelow. -
Sequence[Cluster
V2Shared Storage Args] - List of cluster shared storage configurations. See
shared_storagesbelow. - addons
Sequence[Cluster
V2Addon Args] - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - client_
version str - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- cluster_
category str - The cluster type. Valid values:
- Standard
- Serverless
- cluster_
mode str - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- cluster_
name str - The post-processing script of the cluster.
- cluster_
vpc_ strid - The ID of the virtual private cloud (VPC) in which the cluster resides.
- cluster_
vswitch_ strid - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - deletion_
protection bool - The idle duration of the compute nodes allowed by the cluster.
- manager
Cluster
V2Manager Args - The configurations of the cluster management node. See
managerbelow. - resource_
group_ strid - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- security_
group_ strid - The security group ID.
- cluster
Credentials Property Map - Security credentials for the cluster. See
cluster_credentialsbelow. - List<Property Map>
- List of cluster shared storage configurations. See
shared_storagesbelow. - addons List<Property Map>
- The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - client
Version String - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- cluster
Category String - The cluster type. Valid values:
- Standard
- Serverless
- cluster
Mode String - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- cluster
Name String - The post-processing script of the cluster.
- cluster
Vpc StringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- cluster
Vswitch StringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - deletion
Protection Boolean - The idle duration of the compute nodes allowed by the cluster.
- manager Property Map
- The configurations of the cluster management node. See
managerbelow. - resource
Group StringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- security
Group StringId - The security group ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterV2 resource produces the following output properties:
- Create
Time string - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ClusterV2 Resource
Get an existing ClusterV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterV2State, opts?: CustomResourceOptions): ClusterV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
addons: Optional[Sequence[ClusterV2AddonArgs]] = None,
client_version: Optional[str] = None,
cluster_category: Optional[str] = None,
cluster_credentials: Optional[ClusterV2ClusterCredentialsArgs] = None,
cluster_mode: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_vpc_id: Optional[str] = None,
cluster_vswitch_id: Optional[str] = None,
create_time: Optional[str] = None,
deletion_protection: Optional[bool] = None,
manager: Optional[ClusterV2ManagerArgs] = None,
resource_group_id: Optional[str] = None,
security_group_id: Optional[str] = None,
shared_storages: Optional[Sequence[ClusterV2SharedStorageArgs]] = None) -> ClusterV2func GetClusterV2(ctx *Context, name string, id IDInput, state *ClusterV2State, opts ...ResourceOption) (*ClusterV2, error)public static ClusterV2 Get(string name, Input<string> id, ClusterV2State? state, CustomResourceOptions? opts = null)public static ClusterV2 get(String name, Output<String> id, ClusterV2State state, CustomResourceOptions options)resources: _: type: alicloud:ehpc:ClusterV2 get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Addons
List<Pulumi.
Ali Cloud. Ehpc. Inputs. Cluster V2Addon> - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - Client
Version string - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- Cluster
Category string - The cluster type. Valid values:
- Standard
- Serverless
- Cluster
Credentials Pulumi.Ali Cloud. Ehpc. Inputs. Cluster V2Cluster Credentials - Security credentials for the cluster. See
cluster_credentialsbelow. - Cluster
Mode string - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- Cluster
Name string - The post-processing script of the cluster.
- Cluster
Vpc stringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- Cluster
Vswitch stringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - Create
Time string - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- Deletion
Protection bool - The idle duration of the compute nodes allowed by the cluster.
- Manager
Pulumi.
Ali Cloud. Ehpc. Inputs. Cluster V2Manager - The configurations of the cluster management node. See
managerbelow. - Resource
Group stringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- Security
Group stringId - The security group ID.
-
List<Pulumi.
Ali Cloud. Ehpc. Inputs. Cluster V2Shared Storage> - List of cluster shared storage configurations. See
shared_storagesbelow.
- Addons
[]Cluster
V2Addon Args - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - Client
Version string - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- Cluster
Category string - The cluster type. Valid values:
- Standard
- Serverless
- Cluster
Credentials ClusterV2Cluster Credentials Args - Security credentials for the cluster. See
cluster_credentialsbelow. - Cluster
Mode string - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- Cluster
Name string - The post-processing script of the cluster.
- Cluster
Vpc stringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- Cluster
Vswitch stringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - Create
Time string - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- Deletion
Protection bool - The idle duration of the compute nodes allowed by the cluster.
- Manager
Cluster
V2Manager Args - The configurations of the cluster management node. See
managerbelow. - Resource
Group stringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- Security
Group stringId - The security group ID.
-
[]Cluster
V2Shared Storage Args - List of cluster shared storage configurations. See
shared_storagesbelow.
- addons
List<Cluster
V2Addon> - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - client
Version String - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- cluster
Category String - The cluster type. Valid values:
- Standard
- Serverless
- cluster
Credentials ClusterV2Cluster Credentials - Security credentials for the cluster. See
cluster_credentialsbelow. - cluster
Mode String - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- cluster
Name String - The post-processing script of the cluster.
- cluster
Vpc StringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- cluster
Vswitch StringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - create
Time String - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- deletion
Protection Boolean - The idle duration of the compute nodes allowed by the cluster.
- manager
Cluster
V2Manager - The configurations of the cluster management node. See
managerbelow. - resource
Group StringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- security
Group StringId - The security group ID.
-
List<Cluster
V2Shared Storage> - List of cluster shared storage configurations. See
shared_storagesbelow.
- addons
Cluster
V2Addon[] - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - client
Version string - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- cluster
Category string - The cluster type. Valid values:
- Standard
- Serverless
- cluster
Credentials ClusterV2Cluster Credentials - Security credentials for the cluster. See
cluster_credentialsbelow. - cluster
Mode string - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- cluster
Name string - The post-processing script of the cluster.
- cluster
Vpc stringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- cluster
Vswitch stringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - create
Time string - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- deletion
Protection boolean - The idle duration of the compute nodes allowed by the cluster.
- manager
Cluster
V2Manager - The configurations of the cluster management node. See
managerbelow. - resource
Group stringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- security
Group stringId - The security group ID.
-
Cluster
V2Shared Storage[] - List of cluster shared storage configurations. See
shared_storagesbelow.
- addons
Sequence[Cluster
V2Addon Args] - The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - client_
version str - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- cluster_
category str - The cluster type. Valid values:
- Standard
- Serverless
- cluster_
credentials ClusterV2Cluster Credentials Args - Security credentials for the cluster. See
cluster_credentialsbelow. - cluster_
mode str - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- cluster_
name str - The post-processing script of the cluster.
- cluster_
vpc_ strid - The ID of the virtual private cloud (VPC) in which the cluster resides.
- cluster_
vswitch_ strid - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - create_
time str - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- deletion_
protection bool - The idle duration of the compute nodes allowed by the cluster.
- manager
Cluster
V2Manager Args - The configurations of the cluster management node. See
managerbelow. - resource_
group_ strid - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- security_
group_ strid - The security group ID.
-
Sequence[Cluster
V2Shared Storage Args] - List of cluster shared storage configurations. See
shared_storagesbelow.
- addons List<Property Map>
- The cluster custom service component configuration. Only one component is supported. See
addonsbelow. - client
Version String - Specifies whether to enable auto scale-out for the cluster. Valid values:
- true
- false
- cluster
Category String - The cluster type. Valid values:
- Standard
- Serverless
- cluster
Credentials Property Map - Security credentials for the cluster. See
cluster_credentialsbelow. - cluster
Mode String - The deployment mode of the cluster. Valid values:
- Integrated
- Hybrid
- Custom
- cluster
Name String - The post-processing script of the cluster.
- cluster
Vpc StringId - The ID of the virtual private cloud (VPC) in which the cluster resides.
- cluster
Vswitch StringId - The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the
ClusterVpcIdparameter. You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches. - create
Time String - The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.
- deletion
Protection Boolean - The idle duration of the compute nodes allowed by the cluster.
- manager Property Map
- The configurations of the cluster management node. See
managerbelow. - resource
Group StringId - The ID of the resource group to which the cluster belongs. You can call the ListResourceGroups operation to obtain the IDs of the resource groups.
- security
Group StringId - The security group ID.
- List<Property Map>
- List of cluster shared storage configurations. See
shared_storagesbelow.
Supporting Types
ClusterV2Addon, ClusterV2AddonArgs
- Name string
- Customize the specific configuration information of the service component.
- Version string
- Customize the service component version.
- Resources
Spec string - Customize the resource configuration of the service component.
- Services
Spec string - Customize the service configuration of the service component.
- Name string
- Customize the specific configuration information of the service component.
- Version string
- Customize the service component version.
- Resources
Spec string - Customize the resource configuration of the service component.
- Services
Spec string - Customize the service configuration of the service component.
- name String
- Customize the specific configuration information of the service component.
- version String
- Customize the service component version.
- resources
Spec String - Customize the resource configuration of the service component.
- services
Spec String - Customize the service configuration of the service component.
- name string
- Customize the specific configuration information of the service component.
- version string
- Customize the service component version.
- resources
Spec string - Customize the resource configuration of the service component.
- services
Spec string - Customize the service configuration of the service component.
- name str
- Customize the specific configuration information of the service component.
- version str
- Customize the service component version.
- resources_
spec str - Customize the resource configuration of the service component.
- services_
spec str - Customize the service configuration of the service component.
- name String
- Customize the specific configuration information of the service component.
- version String
- Customize the service component version.
- resources
Spec String - Customize the resource configuration of the service component.
- services
Spec String - Customize the service configuration of the service component.
ClusterV2ClusterCredentials, ClusterV2ClusterCredentialsArgs
- Password string
- The root password of the cluster node. It is 8 to 20 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be: () ~! @ # $ % ^ & * - = + { } [ ] : ; ',. ? /
- Password string
- The root password of the cluster node. It is 8 to 20 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be: () ~! @ # $ % ^ & * - = + { } [ ] : ; ',. ? /
- password String
- The root password of the cluster node. It is 8 to 20 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be: () ~! @ # $ % ^ & * - = + { } [ ] : ; ',. ? /
- password string
- The root password of the cluster node. It is 8 to 20 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be: () ~! @ # $ % ^ & * - = + { } [ ] : ; ',. ? /
- password str
- The root password of the cluster node. It is 8 to 20 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be: () ~! @ # $ % ^ & * - = + { } [ ] : ; ',. ? /
- password String
- The root password of the cluster node. It is 8 to 20 characters in length and must contain three types of characters: uppercase and lowercase letters, numbers, and special symbols. Special symbols can be: () ~! @ # $ % ^ & * - = + { } [ ] : ; ',. ? /
ClusterV2Manager, ClusterV2ManagerArgs
- Directory
Service Pulumi.Ali Cloud. Ehpc. Inputs. Cluster V2Manager Directory Service - The configurations of the domain account service. See
directory_servicebelow. - Dns
Pulumi.
Ali Cloud. Ehpc. Inputs. Cluster V2Manager Dns - The configurations of the domain name resolution service. See
dnsbelow. - Manager
Node Pulumi.Ali Cloud. Ehpc. Inputs. Cluster V2Manager Manager Node - The hardware configurations of the management node. See
manager_nodebelow. - Scheduler
Pulumi.
Ali Cloud. Ehpc. Inputs. Cluster V2Manager Scheduler - The configurations of the scheduler service. See
schedulerbelow.
- Directory
Service ClusterV2Manager Directory Service - The configurations of the domain account service. See
directory_servicebelow. - Dns
Cluster
V2Manager Dns - The configurations of the domain name resolution service. See
dnsbelow. - Manager
Node ClusterV2Manager Manager Node - The hardware configurations of the management node. See
manager_nodebelow. - Scheduler
Cluster
V2Manager Scheduler - The configurations of the scheduler service. See
schedulerbelow.
- directory
Service ClusterV2Manager Directory Service - The configurations of the domain account service. See
directory_servicebelow. - dns
Cluster
V2Manager Dns - The configurations of the domain name resolution service. See
dnsbelow. - manager
Node ClusterV2Manager Manager Node - The hardware configurations of the management node. See
manager_nodebelow. - scheduler
Cluster
V2Manager Scheduler - The configurations of the scheduler service. See
schedulerbelow.
- directory
Service ClusterV2Manager Directory Service - The configurations of the domain account service. See
directory_servicebelow. - dns
Cluster
V2Manager Dns - The configurations of the domain name resolution service. See
dnsbelow. - manager
Node ClusterV2Manager Manager Node - The hardware configurations of the management node. See
manager_nodebelow. - scheduler
Cluster
V2Manager Scheduler - The configurations of the scheduler service. See
schedulerbelow.
- directory_
service ClusterV2Manager Directory Service - The configurations of the domain account service. See
directory_servicebelow. - dns
Cluster
V2Manager Dns - The configurations of the domain name resolution service. See
dnsbelow. - manager_
node ClusterV2Manager Manager Node - The hardware configurations of the management node. See
manager_nodebelow. - scheduler
Cluster
V2Manager Scheduler - The configurations of the scheduler service. See
schedulerbelow.
- directory
Service Property Map - The configurations of the domain account service. See
directory_servicebelow. - dns Property Map
- The configurations of the domain name resolution service. See
dnsbelow. - manager
Node Property Map - The hardware configurations of the management node. See
manager_nodebelow. - scheduler Property Map
- The configurations of the scheduler service. See
schedulerbelow.
ClusterV2ManagerDirectoryService, ClusterV2ManagerDirectoryServiceArgs
ClusterV2ManagerDns, ClusterV2ManagerDnsArgs
ClusterV2ManagerManagerNode, ClusterV2ManagerManagerNodeArgs
- Auto
Renew bool - Whether to automatically renew. This parameter takes effect only when the value of InstanceChargeType is PrePaid. Value range:
- true: Automatic renewal.
- false: Do not renew automatically (default).
- Auto
Renew intPeriod The renewal duration of a single automatic renewal. Value range:
- When PeriodUnit = Week: 1, 2, 3.
- When PeriodUnit = Month: 1, 2, 3, 6, 12, 24, 36, 48, 60.
Default value: 1.
- Duration int
The duration of the preemptible instance, in hours. Value:
- : After the instance is created, Alibaba Cloud will ensure that the instance will not be automatically released after one hour of operation. After one hour, the system will compare the bid price with the market price in real time and check the resource inventory to determine the holding and recycling of the instance.
- 0: After creation, Alibaba Cloud does not guarantee the running time of the instance. The system compares the bid price with the market price in real time and checks the resource inventory to determine the holding and recycling of the instance.
Default value: 1.
- Enable
Ht bool - EnableHT
- Expired
Time string - The expiration time of the management node.
- Image
Id string - ImageId
- Instance
Charge stringType - The instance billing method of the management node. Valid values:
- PostPaid: pay-as-you-go
- PrePaid: subscription
- Instance
Id string - The instance ID of the management node.
- Instance
Type string - The instance type of the management node.
- Period int
- The duration of the resource purchase. The unit is specified by PeriodUnit. The parameter InstanceChargeType takes effect only when the value is PrePaid and is a required value. Once DedicatedHostId is specified, the value range cannot exceed the subscription duration of the DDH. Value range:
- When PeriodUnit = Week, the values of Period are 1, 2, 3, and 4.
- When PeriodUnit = Month, the values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
- Period
Unit string - The unit of duration of the year-to-month billing method. Value range:
- Week.
- Month (default).
- Spot
Price doubleLimit - Set the maximum price per hour for the instance. The maximum number of decimals is 3. It takes effect when the value of the SpotStrategy parameter is SpotWithPriceLimit.
- Spot
Strategy string - The bidding strategy for pay-as-you-go instances. This parameter takes effect when the value of the InstanceChargeType parameter is PostPaid. Value range:
- NoSpot: normal pay-as-you-go instances (default).
- SpotWithPriceLimit: set the upper limit price for the preemptible instance.
- SpotAsPriceGo: The system automatically bids, following the actual price of the current market.
- System
Disk Pulumi.Ali Cloud. Ehpc. Inputs. Cluster V2Manager Manager Node System Disk - System disk configuration of the management node. See
system_diskbelow.
- Auto
Renew bool - Whether to automatically renew. This parameter takes effect only when the value of InstanceChargeType is PrePaid. Value range:
- true: Automatic renewal.
- false: Do not renew automatically (default).
- Auto
Renew intPeriod The renewal duration of a single automatic renewal. Value range:
- When PeriodUnit = Week: 1, 2, 3.
- When PeriodUnit = Month: 1, 2, 3, 6, 12, 24, 36, 48, 60.
Default value: 1.
- Duration int
The duration of the preemptible instance, in hours. Value:
- : After the instance is created, Alibaba Cloud will ensure that the instance will not be automatically released after one hour of operation. After one hour, the system will compare the bid price with the market price in real time and check the resource inventory to determine the holding and recycling of the instance.
- 0: After creation, Alibaba Cloud does not guarantee the running time of the instance. The system compares the bid price with the market price in real time and checks the resource inventory to determine the holding and recycling of the instance.
Default value: 1.
- Enable
Ht bool - EnableHT
- Expired
Time string - The expiration time of the management node.
- Image
Id string - ImageId
- Instance
Charge stringType - The instance billing method of the management node. Valid values:
- PostPaid: pay-as-you-go
- PrePaid: subscription
- Instance
Id string - The instance ID of the management node.
- Instance
Type string - The instance type of the management node.
- Period int
- The duration of the resource purchase. The unit is specified by PeriodUnit. The parameter InstanceChargeType takes effect only when the value is PrePaid and is a required value. Once DedicatedHostId is specified, the value range cannot exceed the subscription duration of the DDH. Value range:
- When PeriodUnit = Week, the values of Period are 1, 2, 3, and 4.
- When PeriodUnit = Month, the values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
- Period
Unit string - The unit of duration of the year-to-month billing method. Value range:
- Week.
- Month (default).
- Spot
Price float64Limit - Set the maximum price per hour for the instance. The maximum number of decimals is 3. It takes effect when the value of the SpotStrategy parameter is SpotWithPriceLimit.
- Spot
Strategy string - The bidding strategy for pay-as-you-go instances. This parameter takes effect when the value of the InstanceChargeType parameter is PostPaid. Value range:
- NoSpot: normal pay-as-you-go instances (default).
- SpotWithPriceLimit: set the upper limit price for the preemptible instance.
- SpotAsPriceGo: The system automatically bids, following the actual price of the current market.
- System
Disk ClusterV2Manager Manager Node System Disk - System disk configuration of the management node. See
system_diskbelow.
- auto
Renew Boolean - Whether to automatically renew. This parameter takes effect only when the value of InstanceChargeType is PrePaid. Value range:
- true: Automatic renewal.
- false: Do not renew automatically (default).
- auto
Renew IntegerPeriod The renewal duration of a single automatic renewal. Value range:
- When PeriodUnit = Week: 1, 2, 3.
- When PeriodUnit = Month: 1, 2, 3, 6, 12, 24, 36, 48, 60.
Default value: 1.
- duration Integer
The duration of the preemptible instance, in hours. Value:
- : After the instance is created, Alibaba Cloud will ensure that the instance will not be automatically released after one hour of operation. After one hour, the system will compare the bid price with the market price in real time and check the resource inventory to determine the holding and recycling of the instance.
- 0: After creation, Alibaba Cloud does not guarantee the running time of the instance. The system compares the bid price with the market price in real time and checks the resource inventory to determine the holding and recycling of the instance.
Default value: 1.
- enable
Ht Boolean - EnableHT
- expired
Time String - The expiration time of the management node.
- image
Id String - ImageId
- instance
Charge StringType - The instance billing method of the management node. Valid values:
- PostPaid: pay-as-you-go
- PrePaid: subscription
- instance
Id String - The instance ID of the management node.
- instance
Type String - The instance type of the management node.
- period Integer
- The duration of the resource purchase. The unit is specified by PeriodUnit. The parameter InstanceChargeType takes effect only when the value is PrePaid and is a required value. Once DedicatedHostId is specified, the value range cannot exceed the subscription duration of the DDH. Value range:
- When PeriodUnit = Week, the values of Period are 1, 2, 3, and 4.
- When PeriodUnit = Month, the values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
- period
Unit String - The unit of duration of the year-to-month billing method. Value range:
- Week.
- Month (default).
- spot
Price DoubleLimit - Set the maximum price per hour for the instance. The maximum number of decimals is 3. It takes effect when the value of the SpotStrategy parameter is SpotWithPriceLimit.
- spot
Strategy String - The bidding strategy for pay-as-you-go instances. This parameter takes effect when the value of the InstanceChargeType parameter is PostPaid. Value range:
- NoSpot: normal pay-as-you-go instances (default).
- SpotWithPriceLimit: set the upper limit price for the preemptible instance.
- SpotAsPriceGo: The system automatically bids, following the actual price of the current market.
- system
Disk ClusterV2Manager Manager Node System Disk - System disk configuration of the management node. See
system_diskbelow.
- auto
Renew boolean - Whether to automatically renew. This parameter takes effect only when the value of InstanceChargeType is PrePaid. Value range:
- true: Automatic renewal.
- false: Do not renew automatically (default).
- auto
Renew numberPeriod The renewal duration of a single automatic renewal. Value range:
- When PeriodUnit = Week: 1, 2, 3.
- When PeriodUnit = Month: 1, 2, 3, 6, 12, 24, 36, 48, 60.
Default value: 1.
- duration number
The duration of the preemptible instance, in hours. Value:
- : After the instance is created, Alibaba Cloud will ensure that the instance will not be automatically released after one hour of operation. After one hour, the system will compare the bid price with the market price in real time and check the resource inventory to determine the holding and recycling of the instance.
- 0: After creation, Alibaba Cloud does not guarantee the running time of the instance. The system compares the bid price with the market price in real time and checks the resource inventory to determine the holding and recycling of the instance.
Default value: 1.
- enable
Ht boolean - EnableHT
- expired
Time string - The expiration time of the management node.
- image
Id string - ImageId
- instance
Charge stringType - The instance billing method of the management node. Valid values:
- PostPaid: pay-as-you-go
- PrePaid: subscription
- instance
Id string - The instance ID of the management node.
- instance
Type string - The instance type of the management node.
- period number
- The duration of the resource purchase. The unit is specified by PeriodUnit. The parameter InstanceChargeType takes effect only when the value is PrePaid and is a required value. Once DedicatedHostId is specified, the value range cannot exceed the subscription duration of the DDH. Value range:
- When PeriodUnit = Week, the values of Period are 1, 2, 3, and 4.
- When PeriodUnit = Month, the values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
- period
Unit string - The unit of duration of the year-to-month billing method. Value range:
- Week.
- Month (default).
- spot
Price numberLimit - Set the maximum price per hour for the instance. The maximum number of decimals is 3. It takes effect when the value of the SpotStrategy parameter is SpotWithPriceLimit.
- spot
Strategy string - The bidding strategy for pay-as-you-go instances. This parameter takes effect when the value of the InstanceChargeType parameter is PostPaid. Value range:
- NoSpot: normal pay-as-you-go instances (default).
- SpotWithPriceLimit: set the upper limit price for the preemptible instance.
- SpotAsPriceGo: The system automatically bids, following the actual price of the current market.
- system
Disk ClusterV2Manager Manager Node System Disk - System disk configuration of the management node. See
system_diskbelow.
- auto_
renew bool - Whether to automatically renew. This parameter takes effect only when the value of InstanceChargeType is PrePaid. Value range:
- true: Automatic renewal.
- false: Do not renew automatically (default).
- auto_
renew_ intperiod The renewal duration of a single automatic renewal. Value range:
- When PeriodUnit = Week: 1, 2, 3.
- When PeriodUnit = Month: 1, 2, 3, 6, 12, 24, 36, 48, 60.
Default value: 1.
- duration int
The duration of the preemptible instance, in hours. Value:
- : After the instance is created, Alibaba Cloud will ensure that the instance will not be automatically released after one hour of operation. After one hour, the system will compare the bid price with the market price in real time and check the resource inventory to determine the holding and recycling of the instance.
- 0: After creation, Alibaba Cloud does not guarantee the running time of the instance. The system compares the bid price with the market price in real time and checks the resource inventory to determine the holding and recycling of the instance.
Default value: 1.
- enable_
ht bool - EnableHT
- expired_
time str - The expiration time of the management node.
- image_
id str - ImageId
- instance_
charge_ strtype - The instance billing method of the management node. Valid values:
- PostPaid: pay-as-you-go
- PrePaid: subscription
- instance_
id str - The instance ID of the management node.
- instance_
type str - The instance type of the management node.
- period int
- The duration of the resource purchase. The unit is specified by PeriodUnit. The parameter InstanceChargeType takes effect only when the value is PrePaid and is a required value. Once DedicatedHostId is specified, the value range cannot exceed the subscription duration of the DDH. Value range:
- When PeriodUnit = Week, the values of Period are 1, 2, 3, and 4.
- When PeriodUnit = Month, the values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
- period_
unit str - The unit of duration of the year-to-month billing method. Value range:
- Week.
- Month (default).
- spot_
price_ floatlimit - Set the maximum price per hour for the instance. The maximum number of decimals is 3. It takes effect when the value of the SpotStrategy parameter is SpotWithPriceLimit.
- spot_
strategy str - The bidding strategy for pay-as-you-go instances. This parameter takes effect when the value of the InstanceChargeType parameter is PostPaid. Value range:
- NoSpot: normal pay-as-you-go instances (default).
- SpotWithPriceLimit: set the upper limit price for the preemptible instance.
- SpotAsPriceGo: The system automatically bids, following the actual price of the current market.
- system_
disk ClusterV2Manager Manager Node System Disk - System disk configuration of the management node. See
system_diskbelow.
- auto
Renew Boolean - Whether to automatically renew. This parameter takes effect only when the value of InstanceChargeType is PrePaid. Value range:
- true: Automatic renewal.
- false: Do not renew automatically (default).
- auto
Renew NumberPeriod The renewal duration of a single automatic renewal. Value range:
- When PeriodUnit = Week: 1, 2, 3.
- When PeriodUnit = Month: 1, 2, 3, 6, 12, 24, 36, 48, 60.
Default value: 1.
- duration Number
The duration of the preemptible instance, in hours. Value:
- : After the instance is created, Alibaba Cloud will ensure that the instance will not be automatically released after one hour of operation. After one hour, the system will compare the bid price with the market price in real time and check the resource inventory to determine the holding and recycling of the instance.
- 0: After creation, Alibaba Cloud does not guarantee the running time of the instance. The system compares the bid price with the market price in real time and checks the resource inventory to determine the holding and recycling of the instance.
Default value: 1.
- enable
Ht Boolean - EnableHT
- expired
Time String - The expiration time of the management node.
- image
Id String - ImageId
- instance
Charge StringType - The instance billing method of the management node. Valid values:
- PostPaid: pay-as-you-go
- PrePaid: subscription
- instance
Id String - The instance ID of the management node.
- instance
Type String - The instance type of the management node.
- period Number
- The duration of the resource purchase. The unit is specified by PeriodUnit. The parameter InstanceChargeType takes effect only when the value is PrePaid and is a required value. Once DedicatedHostId is specified, the value range cannot exceed the subscription duration of the DDH. Value range:
- When PeriodUnit = Week, the values of Period are 1, 2, 3, and 4.
- When PeriodUnit = Month, the values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
- period
Unit String - The unit of duration of the year-to-month billing method. Value range:
- Week.
- Month (default).
- spot
Price NumberLimit - Set the maximum price per hour for the instance. The maximum number of decimals is 3. It takes effect when the value of the SpotStrategy parameter is SpotWithPriceLimit.
- spot
Strategy String - The bidding strategy for pay-as-you-go instances. This parameter takes effect when the value of the InstanceChargeType parameter is PostPaid. Value range:
- NoSpot: normal pay-as-you-go instances (default).
- SpotWithPriceLimit: set the upper limit price for the preemptible instance.
- SpotAsPriceGo: The system automatically bids, following the actual price of the current market.
- system
Disk Property Map - System disk configuration of the management node. See
system_diskbelow.
ClusterV2ManagerManagerNodeSystemDisk, ClusterV2ManagerManagerNodeSystemDiskArgs
- Category string
- Manage the system disk configuration of the node. Value range:
- cloud_efficiency: The Ultra cloud disk.
- cloud_ssd:SSD cloud disk.
- cloud_essd:ESSD cloud disk.
- cloud: ordinary cloud disk.
- Level string
- When creating an ESSD cloud disk to use as a system disk, set the performance level of the cloud disk. Value range:
- PL0: maximum random read/write IOPS 10000 for a single disk.
- PL1 (default): Maximum random read/write IOPS 50000 for a single disk.
- PL2: maximum random read/write IOPS 100000 for a single disk.
- PL3: maximum random read/write IOPS 1 million for a single disk.
- Size int
- The system disk size of the management node. Unit: GiB. Value range:
- Ordinary cloud tray: 20~500.
- ESSD cloud disk:
- PL0:1~2048.
- PL1:20~2048.
- PL2:461~2048.
- PL3:1261~2048.
- Other cloud disk types: 20~2048.
- Category string
- Manage the system disk configuration of the node. Value range:
- cloud_efficiency: The Ultra cloud disk.
- cloud_ssd:SSD cloud disk.
- cloud_essd:ESSD cloud disk.
- cloud: ordinary cloud disk.
- Level string
- When creating an ESSD cloud disk to use as a system disk, set the performance level of the cloud disk. Value range:
- PL0: maximum random read/write IOPS 10000 for a single disk.
- PL1 (default): Maximum random read/write IOPS 50000 for a single disk.
- PL2: maximum random read/write IOPS 100000 for a single disk.
- PL3: maximum random read/write IOPS 1 million for a single disk.
- Size int
- The system disk size of the management node. Unit: GiB. Value range:
- Ordinary cloud tray: 20~500.
- ESSD cloud disk:
- PL0:1~2048.
- PL1:20~2048.
- PL2:461~2048.
- PL3:1261~2048.
- Other cloud disk types: 20~2048.
- category String
- Manage the system disk configuration of the node. Value range:
- cloud_efficiency: The Ultra cloud disk.
- cloud_ssd:SSD cloud disk.
- cloud_essd:ESSD cloud disk.
- cloud: ordinary cloud disk.
- level String
- When creating an ESSD cloud disk to use as a system disk, set the performance level of the cloud disk. Value range:
- PL0: maximum random read/write IOPS 10000 for a single disk.
- PL1 (default): Maximum random read/write IOPS 50000 for a single disk.
- PL2: maximum random read/write IOPS 100000 for a single disk.
- PL3: maximum random read/write IOPS 1 million for a single disk.
- size Integer
- The system disk size of the management node. Unit: GiB. Value range:
- Ordinary cloud tray: 20~500.
- ESSD cloud disk:
- PL0:1~2048.
- PL1:20~2048.
- PL2:461~2048.
- PL3:1261~2048.
- Other cloud disk types: 20~2048.
- category string
- Manage the system disk configuration of the node. Value range:
- cloud_efficiency: The Ultra cloud disk.
- cloud_ssd:SSD cloud disk.
- cloud_essd:ESSD cloud disk.
- cloud: ordinary cloud disk.
- level string
- When creating an ESSD cloud disk to use as a system disk, set the performance level of the cloud disk. Value range:
- PL0: maximum random read/write IOPS 10000 for a single disk.
- PL1 (default): Maximum random read/write IOPS 50000 for a single disk.
- PL2: maximum random read/write IOPS 100000 for a single disk.
- PL3: maximum random read/write IOPS 1 million for a single disk.
- size number
- The system disk size of the management node. Unit: GiB. Value range:
- Ordinary cloud tray: 20~500.
- ESSD cloud disk:
- PL0:1~2048.
- PL1:20~2048.
- PL2:461~2048.
- PL3:1261~2048.
- Other cloud disk types: 20~2048.
- category str
- Manage the system disk configuration of the node. Value range:
- cloud_efficiency: The Ultra cloud disk.
- cloud_ssd:SSD cloud disk.
- cloud_essd:ESSD cloud disk.
- cloud: ordinary cloud disk.
- level str
- When creating an ESSD cloud disk to use as a system disk, set the performance level of the cloud disk. Value range:
- PL0: maximum random read/write IOPS 10000 for a single disk.
- PL1 (default): Maximum random read/write IOPS 50000 for a single disk.
- PL2: maximum random read/write IOPS 100000 for a single disk.
- PL3: maximum random read/write IOPS 1 million for a single disk.
- size int
- The system disk size of the management node. Unit: GiB. Value range:
- Ordinary cloud tray: 20~500.
- ESSD cloud disk:
- PL0:1~2048.
- PL1:20~2048.
- PL2:461~2048.
- PL3:1261~2048.
- Other cloud disk types: 20~2048.
- category String
- Manage the system disk configuration of the node. Value range:
- cloud_efficiency: The Ultra cloud disk.
- cloud_ssd:SSD cloud disk.
- cloud_essd:ESSD cloud disk.
- cloud: ordinary cloud disk.
- level String
- When creating an ESSD cloud disk to use as a system disk, set the performance level of the cloud disk. Value range:
- PL0: maximum random read/write IOPS 10000 for a single disk.
- PL1 (default): Maximum random read/write IOPS 50000 for a single disk.
- PL2: maximum random read/write IOPS 100000 for a single disk.
- PL3: maximum random read/write IOPS 1 million for a single disk.
- size Number
- The system disk size of the management node. Unit: GiB. Value range:
- Ordinary cloud tray: 20~500.
- ESSD cloud disk:
- PL0:1~2048.
- PL1:20~2048.
- PL2:461~2048.
- PL3:1261~2048.
- Other cloud disk types: 20~2048.
ClusterV2ManagerScheduler, ClusterV2ManagerSchedulerArgs
ClusterV2SharedStorage, ClusterV2SharedStorageArgs
- File
System stringId - The ID of the mounted file system.
- Mount
Directory string - The local Mount directory where the file system is mounted.
- Mount
Options string - Storage mount options for the mounted file system.
- Mount
Target stringDomain - The mount point address of the mounted file system.
- Nas
Directory string - The remote directory to which the mounted file system needs to be mounted.
- Protocol
Type string - The protocol type of the mounted file system. Value range:
- NFS
- SMB
- File
System stringId - The ID of the mounted file system.
- Mount
Directory string - The local Mount directory where the file system is mounted.
- Mount
Options string - Storage mount options for the mounted file system.
- Mount
Target stringDomain - The mount point address of the mounted file system.
- Nas
Directory string - The remote directory to which the mounted file system needs to be mounted.
- Protocol
Type string - The protocol type of the mounted file system. Value range:
- NFS
- SMB
- file
System StringId - The ID of the mounted file system.
- mount
Directory String - The local Mount directory where the file system is mounted.
- mount
Options String - Storage mount options for the mounted file system.
- mount
Target StringDomain - The mount point address of the mounted file system.
- nas
Directory String - The remote directory to which the mounted file system needs to be mounted.
- protocol
Type String - The protocol type of the mounted file system. Value range:
- NFS
- SMB
- file
System stringId - The ID of the mounted file system.
- mount
Directory string - The local Mount directory where the file system is mounted.
- mount
Options string - Storage mount options for the mounted file system.
- mount
Target stringDomain - The mount point address of the mounted file system.
- nas
Directory string - The remote directory to which the mounted file system needs to be mounted.
- protocol
Type string - The protocol type of the mounted file system. Value range:
- NFS
- SMB
- file_
system_ strid - The ID of the mounted file system.
- mount_
directory str - The local Mount directory where the file system is mounted.
- mount_
options str - Storage mount options for the mounted file system.
- mount_
target_ strdomain - The mount point address of the mounted file system.
- nas_
directory str - The remote directory to which the mounted file system needs to be mounted.
- protocol_
type str - The protocol type of the mounted file system. Value range:
- NFS
- SMB
- file
System StringId - The ID of the mounted file system.
- mount
Directory String - The local Mount directory where the file system is mounted.
- mount
Options String - Storage mount options for the mounted file system.
- mount
Target StringDomain - The mount point address of the mounted file system.
- nas
Directory String - The remote directory to which the mounted file system needs to be mounted.
- protocol
Type String - The protocol type of the mounted file system. Value range:
- NFS
- SMB
Import
Ehpc Cluster V2 can be imported using the id, e.g.
$ pulumi import alicloud:ehpc/clusterV2:ClusterV2 example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
