ALIYUN::EDAS::ClusterMember is used to add an ECS instance to a cluster.
Syntax
{
"Type": "ALIYUN::EDAS::ClusterMember",
"Properties": {
"Password": String,
"ClusterId": String,
"InstanceIds": List
}
}
Properties
Parameter | Data type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Password | String | Yes | No | ECS password | N/A |
ClusterId | String | Yes | No | The ID of the Kubernetes cluster where Virtual Kubelet is to be deployed. | N/A |
InstanceIds | List | Yes | No | The IDs of ECS instances. Separate multiple ECS instances with commas (,). | N/A |
Error code
Fn::GetAtt
- ClusterMemberIds: The machine ID of the cluster.
- ClusterId: The ID of the cluster.
- InstanceIds: The IDs of the ECS instances.
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"ClusterMember": {
"Type": "ALIYUN::EDAS::ClusterMember",
"Properties": {
"Password": {
"Ref": "Password"
},
"ClusterId": {
"Ref": "ClusterId"
},
"InstanceIds": {
"Ref": "InstanceIds"
}
}
}
},
"Parameters": {
"Password": {
"Type": "String",
"Description": "Password ECS hosts need to import (ECS settings can continue to use purchased)"
},
"ClusterId": {
"Type": "String",
"Description": "Cluster ID to import ECS instance"
},
"InstanceIds": {
"MinLength": 1,
"Type": "Json",
"Description": "ECS instance ID list to import."
}
},
"Outputs": {
"ClusterMemberIds": {
"Description": "Cluster member IDs corresponding to the ECS instance IDs.",
"Value": {
"Fn::GetAtt": [
"ClusterMember",
"ClusterMemberIds"
]
}
},
"ClusterId": {
"Description": "Cluster ID.",
"Value": {
"Fn::GetAtt": [
"ClusterMember",
"ClusterId"
]
}
},
"InstanceIds": {
"Description": "ECS instance IDs.",
"Value": {
"Fn::GetAtt": [
"ClusterMember",
"InstanceIds"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Resources:
ClusterMember:
Type: 'ALIYUN::EDAS::ClusterMember'
Properties:
Password:
Ref: Password
ClusterId:
Ref: ClusterId
InstanceIds:
Ref: InstanceIds
Parameters:
Password:
Type: String
Description: >-
Password ECS hosts need to import (ECS settings can continue to use
purchased)
ClusterId:
Type: String
Description: 'Cluster ID to import ECS instance'
InstanceIds:
MinLength: 1
Type: Json
Description: ECS instance ID list to import.
Outputs:
ClusterMemberIds:
Description: Cluster member IDs corresponding to the ECS instance IDs.
Value:
'Fn::GetAtt':
-ClusterMember
-ClusterMemberIds
ClusterId:
Description: Cluster ID.
Value:
'Fn::GetAtt':
-ClusterMember
- ClusterId
InstanceIds:
Description: ECS instance IDs.
Value:
'Fn::GetAtt':
-ClusterMember
- InstanceIds