Queries details of 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 node pool information. |
Example: |
|
Status |
Map |
The node status information. |
Example: |
|
Management |
Map |
The managed node pool configurations. |
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 in the edge node pool. |
Must be greater than or equal to 0. The value varies by node pool type:
Note
A value of 0 means the node count is limited only by the cluster quota. |
|
KubernetesConfig |
Map |
The cluster configurations. |
Example: |
|
ScalingGroup |
Map |
The scaling group configurations. |
Example: |
|
AutoScaling |
Map |
The auto scaling configurations. |
Example: |
|
TeeConfig |
Map |
The confidential computing configurations. |
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