Skip to content

ClusterV2Props

Properties for defining a ClusterV2.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ehpc-clusterv2

Initializer

import ros_cdk_ehpc
ros_cdk_ehpc.ClusterV2Props(
  cluster_name: typing.Union[str, IResolvable],
  shared_storages: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, SharedStoragesProperty]]],
  vpc_id: typing.Union[str, IResolvable],
  v_switch_id: typing.Union[str, IResolvable],
  additional_packages: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, AdditionalPackagesProperty]]] = None,
  addons: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, AddonsProperty]]] = None,
  client_version: typing.Union[str, IResolvable] = None,
  cluster_category: typing.Union[str, IResolvable] = None,
  cluster_credentials: typing.Union[IResolvable, ClusterCredentialsProperty] = None,
  cluster_custom_configuration: typing.Union[IResolvable, ClusterCustomConfigurationProperty] = None,
  cluster_description: typing.Union[str, IResolvable] = None,
  cluster_mode: typing.Union[str, IResolvable] = None,
  deletion_protection: typing.Union[bool, IResolvable] = None,
  is_enterprise_security_group: typing.Union[bool, IResolvable] = None,
  manager: typing.Union[IResolvable, ManagerProperty] = None,
  max_core_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  max_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  queues: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, QueuesProperty]]] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  security_group_id: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None
)

Properties

Name Type Description
cluster_name typing.Union[str, ros_cdk_core.IResolvable] Property clusterName: Cluster name.
shared_storages typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, SharedStoragesProperty]]] Property sharedStorages: The list of shared storage configurations.
vpc_id typing.Union[str, ros_cdk_core.IResolvable] Property vpcId: The ID of the VPC used by the cluster.
v_switch_id typing.Union[str, ros_cdk_core.IResolvable] Property vSwitchId: The ID of the VSwitch used by the cluster.
additional_packages typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, AdditionalPackagesProperty]]] Property additionalPackages: A list of software to install on the cluster.
addons typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, AddonsProperty]]] Property addons: Cluster custom service component configuration to support only one component.
client_version typing.Union[str, ros_cdk_core.IResolvable] Property clientVersion: Cluster client version.
cluster_category typing.Union[str, ros_cdk_core.IResolvable] Property clusterCategory: Cluster series.
cluster_credentials typing.Union[ros_cdk_core.IResolvable, ClusterCredentialsProperty] Property clusterCredentials: Security credentials for the cluster.
cluster_custom_configuration typing.Union[ros_cdk_core.IResolvable, ClusterCustomConfigurationProperty] Property clusterCustomConfiguration: Cluster post-processing scripts.
cluster_description typing.Union[str, ros_cdk_core.IResolvable] Property clusterDescription: Cluster description.
cluster_mode typing.Union[str, ros_cdk_core.IResolvable] Property clusterMode: Cluster deployment type.
deletion_protection typing.Union[bool, ros_cdk_core.IResolvable] Property deletionProtection: The cluster deletion protection property, which specifies whether cluster deletion via the console or the DeleteCluster API is supported.
is_enterprise_security_group typing.Union[bool, ros_cdk_core.IResolvable] Property isEnterpriseSecurityGroup: Whether to create an enterprise security group.
manager typing.Union[ros_cdk_core.IResolvable, ManagerProperty] Property manager: The cluster manages node configuration.
max_core_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property maxCoreCount: Total number of cores that the cluster can manage on compute nodes, ranging from 0 to 100,000.
max_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property maxCount: Number of compute nodes that can be managed by the cluster, ranging from 0 to 5,000.
queues typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, QueuesProperty]]] Property queues: Cluster queue configuration.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group.
security_group_id typing.Union[str, ros_cdk_core.IResolvable] Property securityGroupId: Specifies the security group ID to which the newly created cluster belongs.
tags typing.List[TagsProperty] Property tags: Tags to attach to cluster_v2.

cluster_nameRequired

cluster_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clusterName: Cluster name.

The length is from 2 to 128 characters, and it supports English, Chinese and numbers. You can include a dash (-) and an underscore (_).


shared_storagesRequired

shared_storages: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, SharedStoragesProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, SharedStoragesProperty]]]

Property sharedStorages: The list of shared storage configurations.


vpc_idRequired

vpc_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property vpcId: The ID of the VPC used by the cluster.


v_switch_idRequired

v_switch_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property vSwitchId: The ID of the VSwitch used by the cluster.


additional_packagesOptional

additional_packages: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, AdditionalPackagesProperty]]]

Property additionalPackages: A list of software to install on the cluster.

Range from 0 to 10.


addonsOptional

addons: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, AddonsProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, AddonsProperty]]]

Property addons: Cluster custom service component configuration to support only one component.


client_versionOptional

client_version: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clientVersion: Cluster client version.

By default, the latest version is used.


cluster_categoryOptional

cluster_category: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clusterCategory: Cluster series.

Valid values:

  • Standard: The standard version.
  • Serverless: Hosted version

cluster_credentialsOptional

cluster_credentials: typing.Union[IResolvable, ClusterCredentialsProperty]

Property clusterCredentials: Security credentials for the cluster.


cluster_custom_configurationOptional

cluster_custom_configuration: typing.Union[IResolvable, ClusterCustomConfigurationProperty]

Property clusterCustomConfiguration: Cluster post-processing scripts.


cluster_descriptionOptional

cluster_description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clusterDescription: Cluster description.

The length is from 2 to 128 characters, and it supports English, Chinese and numbers. You can include a dash (-) and an underscore (_).


cluster_modeOptional

cluster_mode: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clusterMode: Cluster deployment type.

Valid values:

  • Integrated: Public cloud clustering.
  • Hybrid: Hybrid cloud cluster.
  • Custom: The cluster is customized

deletion_protectionOptional

deletion_protection: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property deletionProtection: The cluster deletion protection property, which specifies whether cluster deletion via the console or the DeleteCluster API is supported.

  • true: Cluster deletion protection is enabled.
  • false: This turns off cluster deletion protection. Default value: false

is_enterprise_security_groupOptional

is_enterprise_security_group: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property isEnterpriseSecurityGroup: Whether to create an enterprise security group.

Valid values:

  • true: Enterprise security groups are automatically created and used.
  • false: Normal security groups are automatically created and used instead of enterprise security groups.

managerOptional

manager: typing.Union[IResolvable, ManagerProperty]

Property manager: The cluster manages node configuration.


max_core_countOptional

max_core_count: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property maxCoreCount: Total number of cores that the cluster can manage on compute nodes, ranging from 0 to 100,000.


max_countOptional

max_count: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property maxCount: Number of compute nodes that can be managed by the cluster, ranging from 0 to 5,000.


queuesOptional

queues: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, QueuesProperty]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, QueuesProperty]]]

Property queues: Cluster queue configuration.

The number of queues is supported from 0 to 8.


resource_group_idOptional

resource_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property resourceGroupId: The ID of the resource group.


security_group_idOptional

security_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property securityGroupId: Specifies the security group ID to which the newly created cluster belongs.


tagsOptional

tags: typing.List[TagsProperty]

Property tags: Tags to attach to cluster_v2.

Max support 20 tags to add during create cluster_v2. Each tag with two properties Key and Value, and Key is required.