DATASOURCE::CS::ClusterNodePools is used to query the information about all node pools in a Container Service for Kubernetes (ACK) cluster.
Syntax
{
"Type": "DATASOURCE::CS::ClusterNodePools",
"Properties": {
"ClusterId": String,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ClusterId | String | Yes | Yes | The cluster ID. | None. |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values (Fn::GetAtt)
NodePoolIds: the IDs of the node pools.
NodePools: details of the node pools.
Property | Type | Description | Constraint |
NodePoolIds | List | The IDs of the node pools. | None. |
NodePools | List | Details of the node pools. | None. |
NodepoolInfo | Map | The information about the node pool. | Example: |
Status | Map | The status information about nodes in the node pool. | Example: |
Management | Map | The configurations of the managed node pool. | This property takes effect only for ACK Pro clusters. Example: |
InterconnectConfig | Map | The network configurations of the edge node pool. | This property takes effect only for |
InterconnectMode | String | The network mode of the edge node pool. | This property takes effect only for
|
MaxNodes | Number | The maximum number of nodes that can be contained in the edge node pool. | The value of this property is greater than or equal to 0. The value of this property varies based on the type of the node pool:
Note A value of 0 indicates that the number of nodes in the node pool is limited only by the quota of nodes in the cluster. |
KubernetesConfig | Map | The configurations of the cluster. | Example: |
ScalingGroup | Map | The configurations of the scaling group. | Example: |
AutoScaling | Map | The configurations of auto scaling. | Example: |
TeeConfig | Map | The configurations of confidential computing. | Example: |
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ClusterId": {
"Type": "String",
"Description": "Cluster ID."
}
},
"Resources": {
"ClusterNodePools": {
"Type": "DATASOURCE::CS::ClusterNodePools",
"Properties": {
"ClusterId": {
"Ref": "ClusterId"
}
}
}
},
"Outputs": {
"NodePools": {
"Description": "The list of node_pools.",
"Value": {
"Fn::GetAtt": [
"ClusterNodePools",
"NodePools"
]
}
},
"NodePoolIds": {
"Description": "The list of node_pool IDs.",
"Value": {
"Fn::GetAtt": [
"ClusterNodePools",
"NodePoolIds"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ClusterId:
Type: String
Description: Cluster ID.
Resources:
ClusterNodePools:
Type: DATASOURCE::CS::ClusterNodePools
Properties:
ClusterId:
Ref: ClusterId
Outputs:
NodePools:
Description: The list of node_pools.
Value:
Fn::GetAtt:
- ClusterNodePools
- NodePools
NodePoolIds:
Description: The list of node_pool IDs.
Value:
Fn::GetAtt:
- ClusterNodePools
- NodePoolIds