DATASOURCE::CS::KubernetesClusters is used to query Container Service for Kubernetes (ACK) clusters.
Syntax
{
"Type": "DATASOURCE::CS::KubernetesClusters",
"Properties": {
"ClusterSpec": String,
"ClusterType": String,
"Profile": String,
"Name": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ClusterSpec | String | No | Yes | The specification of the cluster. | If you set the ClusterType property to ManagedKubernetes, you can use this property to distinguish the type of the cluster. Valid values:
Note If you set this property to Null, you cannot use this property to distinguish the type of the cluster. |
ClusterType | String | No | Yes | The type of the cluster. | Valid values:
Note When you query an ACK Serverless cluster, the value of this property is determined by the cluster type that you specified when you created the cluster. |
Profile | String | No | Yes | The profile of the cluster. | If you set the ClusterType property to ManagedKubernetes, you can use this property to distinguish the type of the cluster. Valid values:
Note If you set this property to Null, you cannot use this property to distinguish the type of the cluster. |
Name | String | No | Yes | The name of the cluster. | The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-). The name cannot start with a hyphen (-). |
Return values (Fn::GetAtt)
ClusterIds: the IDs of the clusters.
Clusters: details of the clusters.
Property | Type | Description | Constraint |
ClusterIds | List | The IDs of the clusters. | None. |
Clusters | List | Details of the clusters. | None. |
Name | String | The name of the cluster. | The name must be 1 to 63 characters in length, and can contain digits, letters, and hyphens (-). The name cannot start with a hyphen (-). |
ClusterId | String | The ID of the cluster. | None. |
RegionId | String | The ID of the region in which the cluster is deployed. | None. |
State | String | The state of the cluster. | Valid values:
|
ClusterType | String | The type of the cluster. | Valid values:
|
Created | String | The when the cluster was created. | None. |
Updated | String | The time when the cluster was updated. | None. |
InitVersion | String | The initial Kubernetes version of the cluster. | ACK provides clusters of the latest two Kubernetes versions in the console. You can call specific ACK API operations to create clusters of other Kubernetes versions. For more information about Kubernetes versions that are supported by ACK, see Overview of Kubernetes versions supported by ACK. Note ACK supports all open source Kubernetes versions. We recommend that you use the latest Kubernetes version. If you leave this property empty, the latest Kubernetes version is used. |
CurrentVersion | String | The current Kubernetes version of the cluster. | None. |
MetaData | String | The metadata of the cluster. | None. |
ResourceGroupId | String | The ID of the resource group to which the cluster belongs. | None. |
InstanceType | String | The instance type of the node in the cluster. | None. |
VpcId | String | The ID of the virtual private cloud (VPC) in which the cluster is deployed. | None. |
| String | The ID of the vSwitch to which the cluster is connected. | None. |
| String | The vSwitch CIDR block of the cluster. | None. |
DataDiskSize | String | The data disk size of the cluster. | None. |
DataDiskCategory | String | The data disk category of the cluster. | None. |
SecurityGroupId | String | The ID of the security group to which the cluster belongs. | None. |
Tags | List | The labels of the cluster. | For more information about labels, see the tag section of the "Commonly used parameters" topic. |
ZoneId | String | The ID of the zone in which the cluster is deployed. | None. |
NetworkMode | String | The network type of the cluster. | Default value: vpc. Valid values:
|
SubnetCidr | String | The pod CIDR block of the cluster. | The CIDR block must be one of the following CIDR blocks of the VPC or their subnets:
Note The pod CIDR block cannot overlap with the CIDR block of the VPC in which the cluster is deployed and the CIDR blocks of existing ACK clusters in the VPC. You cannot modify the pod CIDR block after you create the cluster. |
MasterUrl | String | The endpoint that is used to access the cluster. | Valid values:
|
ExternalLoadbalancerId | String | The ID of the Server Load Balancer (SLB) instance that is used for the Ingress of the cluster. | None. |
Port | String | The port of the node. | None. |
NodeStatus | String | Indicates whether the node is ready. | Valid values:
|
ClusterHealthy | String | The health state of the cluster. | None. |
DockerVersion | String | The Docker version that is used by the cluster. | None. |
SwarmMode | Boolean | Indicates whether the swarm mode is enabled. | Valid values:
|
GwBridge | String | The virtual bridge that connects networks. | None. |
UpgradeComponents | Map | Details of the components that can be updated in the cluster. | Example: |
NextVersion | String | The Kubernetes version to which the cluster can be updated. | None. |
PrivateZone | Boolean | Indicates whether Alibaba Cloud DNS PrivateZone is activated. | Valid values:
|
ServiceDiscoveryTypes | List | The types of the service discovery feature that is implemented in an ACK Serverless cluster. | By default, this property is empty. Valid values:
|
PrivateLink | String | Indicates whether PrivateLink is activated for the cluster. | None. |
Profile | String | The profile that is specified for the cluster in a specific scenario. | Valid values:
|
DeletionProtection | Boolean | Indicates whether deletion protection is enabled for the cluster. | If deletion protection is enabled for the cluster, you cannot delete the cluster by using the ACK console or by calling specific ACK API operations. Valid values:
|
ClusterSpec | String | The specification of the ACK managed cluster. | This property takes effect only for ACK managed clusters. Valid values:
|
MaintenanceWindow | Map | The configurations of the maintenance window of the cluster. | This property takes effect only for ACK Pro clusters. For more information, see the maintenance_window section of the "Commonly used parameters" topic. |
Capabilities | Map | The features of the current Kubernetes version. | None. |
EnabledMigration | Boolean | Indicates whether migration is enabled for the cluster. | Valid values:
|
NeedUpdateAgent | Boolean | Indicates whether the agent in the cluster can be updated. | Valid values:
|
Outputs | List | The output information about the cluster. | Example: |
Parameters | Map | The input properties that are specified for the cluster. | None. |
WorkerRamRoleName | String | The name of the RAM role for worker nodes. | You can use the RAM role to authorize Elastic Compute Service (ECS) instances to serve as the worker nodes in the cluster. |
MaintenanceInfo | Map | The maintenance configurations of the cluster. | None. |