Skip to content

ClusterProps

Properties for defining a Cluster.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-edas-cluster

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkedas"
&alicloudroscdkedas.ClusterProps {
    ClusterName: interface{},
    ClusterType: interface{},
    NetworkMode: interface{},
    LogicalRegionId: interface{},
    OversoldFactor: interface{},
    ResourceGroupId: interface{},
    VpcId: interface{},
}

Properties

Name Type Description
ClusterName interface{} Property clusterName: Cluster name.
ClusterType interface{} Property clusterType: Cluster type.
NetworkMode interface{} Property networkMode: Network Type.
LogicalRegionId interface{} Property logicalRegionId: Custom namespace RegionId (format: Physical Region: custom namespace identifier).
OversoldFactor interface{} Property oversoldFactor: Docker CPU cluster oversold.
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
VpcId interface{} Property vpcId: VPC network ID.

ClusterNameRequired

ClusterName interface{}
  • Type: interface{}

Property clusterName: Cluster name.


ClusterTypeRequired

ClusterType interface{}
  • Type: interface{}

Property clusterType: Cluster type.

1-Swarm cluster, 2-ECS cluster, 3-Kubernetes Cluster


NetworkModeRequired

NetworkMode interface{}
  • Type: interface{}

Property networkMode: Network Type.

1- classic network, 2-VPC


LogicalRegionIdOptional

LogicalRegionId interface{}
  • Type: interface{}

Property logicalRegionId: Custom namespace RegionId (format: Physical Region: custom namespace identifier).


OversoldFactorOptional

OversoldFactor interface{}
  • Type: interface{}

Property oversoldFactor: Docker CPU cluster oversold.

Support 2 (1: 2 ratio) / 4 (1: 4) / 8 (1: 8 ratio)


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


VpcIdOptional

VpcId interface{}
  • Type: interface{}

Property vpcId: VPC network ID.

If network selection VPC, this parameter Required