All Products
Search
Document Center

Resource Orchestration Service:CS resources

Last Updated:Jun 22, 2026

Lists the AssociationProperty values and AssociationPropertyMetadata for Container Service for Kubernetes (ACK) resources in ROS templates.

AssociationProperty values

Description

Corresponding AssociationPropertyMetadata

ALIYUN::CS::Cluster::ClusterId

The container cluster ID.

  • RegionId: The region ID (defaults to the stack's region).

  • ClusterState: The cluster status.

    • running: Running.

    • initial: Initializing.

    • unavailable: Unavailable.

    • all: Any status.

Example:

  • Example code

    JSON example:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ClusterId":{
          "AssociationProperty":"ALIYUN::CS::Cluster::ClusterId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ClusterId:
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
        Type: String
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Example description

    Retrieves the container cluster ID by setting AssociationProperty of the ClusterId parameter to ALIYUN::CS::Cluster::ClusterId.

ALIYUN::CS::Cluster::ClusterNodePool

The node pool of a container cluster.

  • RegionId: The region ID (defaults to the stack's region).

  • ClusterId: The container cluster ID.

Example:

  • Example code

    JSON example:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ClusterId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::CS::Cluster::ClusterId"
        },
        "ClusterNodePool":{
          "AssociationProperty":"ALIYUN::CS::Cluster::ClusterId",
          "Type":"String",
          "AssociationPropertyMetadata": {
            "ClusterId": "${ClusterId}"
          }
        }
      }
    }

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ClusterId:
        Type: String
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
      ClusterNodePool:
        AssociationProperty: ALIYUN::CS::Cluster::ClusterId
        Type: String
        AssociationPropertyMetadata:
          ClusterId: ${ClusterId}
  • Example description

    Retrieves the node pool of a container cluster by setting AssociationProperty of the ClusterNodePool parameter to ALIYUN::CS::Cluster::ClusterNodePool.

ALIYUN::CS::Cluster::KubernetesVersion

The Kubernetes version.

  • ClusterType: The cluster type.

    • Kubernetes: ACK dedicated cluster.

    • ManagedKubernetes: ACK managed cluster, including ACK Pro Edition clusters, ACK Basic Edition clusters, ACK Serverless Pro Edition clusters, ACK Serverless Basic Edition clusters, ACK Edge Pro Edition clusters, and ACK Edge Basic Edition clusters.

    • ExternalKubernetes: ACK registered cluster.

  • Profile: The cluster profile for specific scenarios.

    • Default: Non-edge scenario cluster.

    • Edge: Edge scenario cluster.

    • Serverless: ASK cluster.

  • Runtime: The runtime type.

    • docker: Docker runtime.

    • containerd: Containerd runtime.

    • Sandboxed-Container.runv: Sandboxed container.

  • KubernetesVersionPrefix: The version prefix.

  • AutoSelectLatest: Automatically select the latest version.

Example code

JSON example:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CSManagedKubernetesClusterServiceCidr": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CS::Cluster::KubernetesVersion",
      "AssociationPropertyMetadata": {
        "AutoSelectLastest": true
      }
    }
  }
}

YAML example:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CSManagedKubernetesClusterServiceCidr:
    Type: String
    AssociationProperty: ALIYUN::CS::Cluster::KubernetesVersion
    AssociationPropertyMetadata:
      AutoSelectLastest: true

ALIYUN::CS::ManagedKubernetesCluster::ServiceCidr

The Service CIDR of a managed Kubernetes cluster.

  • RegionId: The region ID (defaults to the stack's region).

  • ClusterType: The cluster type.

  • VpcId: The VPC ID.

  • NodeCidrMask: The maximum number of IP addresses for nodes.

  • ContainerCidr: The container CIDR block.

Example code

JSON example:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    },
    "CSManagedKubernetesClusterServiceCidr": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CS::ManagedKubernetesCluster::ServiceCidr",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "VpcId": "${VpcId}"
      }
    }
  }
}

YAML example:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
  CSManagedKubernetesClusterServiceCidr:
    Type: String
    AssociationProperty: ALIYUN::CS::ManagedKubernetesCluster::ServiceCidr
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      VpcId: ${VpcId}