すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::EDAS::Cluster

最終更新日:Jan 16, 2025

ALIYUN::EDAS::Cluster は、クラスターを作成するために使用されます。

構文

{
  "Type": "ALIYUN::EDAS::Cluster",
  "Properties": {
    "VpcId": String,
    "NetworkMode": Integer,
    "LogicalRegionId": String,
    "ClusterName": String,
    "ClusterType": Integer,
    "OversoldFactor": Integer,
    "ResourceGroupId": String
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
VpcIdStringいいえいいえ仮想プライベートクラウド ( VPC ) の ID 。NetworkMode プロパティが 2 に設定されている場合、このプロパティは必須です。
NetworkModeIntegerはいいいえクラスターのネットワークタイプ。有効な値:
  • 1:クラシックネットワーク
  • 2:VPC
LogicalRegionIdStringいいえいいえカスタム名前空間のリージョン ID 。リージョン ID の形式は 物理リージョン ID : カスタム名前空間識別子 です。

例:cn-beijing:prod

ResourceGroupIdStringいいえはいリソースグループの ID 。なし
ClusterNameStringはいいいえクラスターの名前。名前は 1 ~ 64 文字で、文字、数字、アンダースコア(_)、ピリオド(.)を含めることができます。
ClusterTypeIntegerはいいいえクラスターのタイプ。有効な値:
  • 1:Swarm クラスター
  • 2:Elastic Compute Service ( ECS ) クラスター
  • 3:Kubernetes クラスター
OversoldFactorIntegerいいえいいえDocker クラスターでサポートされる CPU オーバーセル比率。有効な値:
  • 2 ( 1 / 2 )
  • 4 ( 1 / 4 )
  • 8 ( 1 / 8 )

レスポンスパラメーター

Fn::GetAtt

  • ClusterName:クラスターの名前。
  • IaasProvider:サービスプロバイダー。
  • ClusterId:クラスターの ID 。
  • ClusterType:クラスターのタイプ。

  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      VpcId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
    Resources:
      Cluster:
        Type: ALIYUN::EDAS::Cluster
        Properties:
          LogicalRegionId:
            Fn::Join:
              - ':'
              - - Ref: ALIYUN::Region
                - prod
          OversoldFactor: 4
          VpcId:
            Ref: VpcId
          ClusterName: TestCluster
          NetworkMode: 2
          ClusterType: 2
    Outputs:
      ClusterName:
        Description: Cluster name  # クラスター名
        Value:
          Fn::GetAtt:
            - Cluster
            - ClusterName
      IaasProvider:
        Description: Provider # プロバイダー
        Value:
          Fn::GetAtt:
            - Cluster
            - IaasProvider
      ClusterId:
        Description: Cluster ID # クラスターID
        Value:
          Fn::GetAtt:
            - Cluster
            - ClusterId
      ClusterType:
        Description: Cluster type # クラスタタイプ
        Value:
          Fn::GetAtt:
            - Cluster
            - ClusterType
  • JSON 形式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "VpcId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
        }
      },
      "Resources": {
        "Cluster": {
          "Type": "ALIYUN::EDAS::Cluster",
          "Properties": {
            "LogicalRegionId": {
              "Fn::Join": [
                ":",
                [
                  {
                    "Ref": "ALIYUN::Region"
                  },
                  "prod"
                ]
              ]
            },
            "OversoldFactor": 4,
            "VpcId": {
              "Ref": "VpcId"
            },
            "ClusterName": "TestCluster",
            "NetworkMode": 2,
            "ClusterType": 2
          }
        }
      },
      "Outputs": {
        "ClusterName": {
          "Description": "Cluster name", // クラスター名
          "Value": {
            "Fn::GetAtt": [
              "Cluster",
              "ClusterName"
            ]
          }
        },
        "IaasProvider": {
          "Description": "Provider", // プロバイダー
          "Value": {
            "Fn::GetAtt": [
              "Cluster",
              "IaasProvider"
            ]
          }
        },
        "ClusterId": {
          "Description": "Cluster ID", // クラスターID
          "Value": {
            "Fn::GetAtt": [
              "Cluster",
              "ClusterId"
            ]
          }
        },
        "ClusterType": {
          "Description": "Cluster type", // クラスタタイプ
          "Value": {
            "Fn::GetAtt": [
              "Cluster",
              "ClusterType"
            ]
          }
        }
      }
    }