ALIYUN::CS::AnyCluster is used to create a Kubernetes cluster of any type.
Syntax
{
"Type": "ALIYUN::CS::AnyCluster",
"Properties": {
"ClusterConfig": Map
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
ClusterConfig | Map | Yes | No | The cluster configurations. | You can refer to the API operations that correspond to different types of Kubernetes clusters. For information about how to create a managed Kubernetes cluster, see Create a managed cluster. |
Response parameters
Fn::GetAtt
- ClusterId: the ID of the cluster.
- TaskId: the ID of the task. The task ID is automatically assigned by the system and can be used to query the task status.
- WorkerRamRoleName: the RAM role name of the worker node.
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"AnyCluster": {
"Type": "ALIYUN::CS::AnyCluster",
"Properties": {
"ClusterConfig": {
"Ref": "ClusterConfig"
}
}
}
},
"Parameters": {
"ClusterConfig": {
"Type": "Json",
"Description": "Cluster config."
}
},
"Outputs": {
"ClusterId": {
"Description": "Cluster instance ID.",
"Value": {
"Fn::GetAtt": [
"AnyCluster",
"ClusterId"
]
}
},
"TaskId": {
"Description": "Task ID. Automatically assigned by the system, the user queries the task status.",
"Value": {
"Fn::GetAtt": [
"AnyCluster",
"TaskId"
]
}
},
"WorkerRamRoleName": {
"Description": "Worker ram role name.",
"Value": {
"Fn::GetAtt": [
"AnyCluster",
"WorkerRamRoleName"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Resources:
AnyCluster:
Type: 'ALIYUN::CS::AnyCluster'
Properties:
ClusterConfig:
Ref: ClusterConfig
Parameters:
ClusterConfig:
Type: Json
Description: Cluster config.
Outputs:
ClusterId:
Description: Cluster instance ID.
Value:
'Fn::GetAtt':
- AnyCluster
- ClusterId
TaskId:
Description: >-
Task ID. Automatically assigned by the system, the user queries the task
status.
Value:
'Fn::GetAtt':
- AnyCluster
- TaskId
WorkerRamRoleName:
Description: Worker ram role name.
Value:
'Fn::GetAtt':
- AnyCluster
- WorkerRamRoleName