GetKubernetesClusters
This data source provides a list Container Service Kubernetes Clusters on Alibaba Cloud.
NOTE: Available in v1.34.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var k8sClusters = Output.Create(AliCloud.CS.GetKubernetesClusters.InvokeAsync(new AliCloud.CS.GetKubernetesClustersArgs
{
NameRegex = "my-first-k8s",
OutputFile = "my-first-k8s-json",
}));
this.Output = k8sClusters.Apply(k8sClusters => k8sClusters.Clusters);
}
[Output("output")]
public Output<string> Output { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
k8s_clusters = alicloud.cs.get_kubernetes_clusters(name_regex="my-first-k8s",
output_file="my-first-k8s-json")
pulumi.export("output", k8s_clusters.clusters)import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Declare the data source
const k8sClusters = pulumi.output(alicloud.cs.getKubernetesClusters({
nameRegex: "my-first-k8s",
outputFile: "my-first-k8s-json",
}, { async: true }));
export const output = k8sClusters.clusters;Using GetKubernetesClusters
function getKubernetesClusters(args: GetKubernetesClustersArgs, opts?: InvokeOptions): Promise<GetKubernetesClustersResult>function get_kubernetes_clusters(enable_details=None, ids=None, name_regex=None, output_file=None, opts=None)func GetKubernetesClusters(ctx *Context, args *GetKubernetesClustersArgs, opts ...InvokeOption) (*GetKubernetesClustersResult, error)public static class GetKubernetesClusters {
public static Task<GetKubernetesClustersResult> InvokeAsync(GetKubernetesClustersArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Enable
Details bool - Ids List<string>
Cluster IDs to filter.
- Name
Regex string A regex string to filter results by cluster name.
- Output
File string
- Enable
Details bool - Ids []string
Cluster IDs to filter.
- Name
Regex string A regex string to filter results by cluster name.
- Output
File string
- enable
Details boolean - ids string[]
Cluster IDs to filter.
- name
Regex string A regex string to filter results by cluster name.
- output
File string
- enable_
details bool - ids List[str]
Cluster IDs to filter.
- name_
regex str A regex string to filter results by cluster name.
- output_
file str
GetKubernetesClusters Result
The following output properties are available:
- Clusters
List<Pulumi.
Ali Cloud. CS. Outputs. Get Kubernetes Clusters Cluster> A list of matched Kubernetes clusters. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
A list of matched Kubernetes clusters’ ids.
- Names List<string>
A list of matched Kubernetes clusters’ names.
- Enable
Details bool - Name
Regex string - Output
File string
- Clusters
[]Get
Kubernetes Clusters Cluster A list of matched Kubernetes clusters. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of matched Kubernetes clusters’ ids.
- Names []string
A list of matched Kubernetes clusters’ names.
- Enable
Details bool - Name
Regex string - Output
File string
- clusters
Get
Kubernetes Clusters Cluster[] A list of matched Kubernetes clusters. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of matched Kubernetes clusters’ ids.
- names string[]
A list of matched Kubernetes clusters’ names.
- enable
Details boolean - name
Regex string - output
File string
- clusters
List[Get
Kubernetes Clusters Cluster] A list of matched Kubernetes clusters. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of matched Kubernetes clusters’ ids.
- names List[str]
A list of matched Kubernetes clusters’ names.
- enable_
details bool - name_
regex str - output_
file str
Supporting Types
GetKubernetesClustersCluster
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Availability
Zone string The ID of availability zone.
- Cluster
Network stringType - Connections
Pulumi.
Ali Cloud. CS. Inputs. Get Kubernetes Clusters Cluster Connections Args Map of kubernetes cluster connection information. It contains several attributes to
Block Connections.- Id string
ID of the node.
- Image
Id string The ID of node image.
- Key
Name string The keypair of ssh login cluster node, you have to create it first.
- Log
Configs List<Pulumi.Ali Cloud. CS. Inputs. Get Kubernetes Clusters Cluster Log Config Args> A list of one element containing information about the associated log store. It contains the following attributes:
- Master
Auto boolRenew - Master
Auto intRenew Period - Master
Disk stringCategory The system disk category of master node.
- Master
Disk intSize The system disk size of master node.
- Master
Instance stringCharge Type - Master
Instance List<string>Types The instance type of master node.
- Master
Nodes List<Pulumi.Ali Cloud. CS. Inputs. Get Kubernetes Clusters Cluster Master Node Args> List of cluster master nodes. It contains several attributes to
Block Nodes.- Master
Period int - Master
Period stringUnit - Name string
Node name.
- Nat
Gateway stringId The ID of nat gateway used to launch kubernetes cluster.
- Node
Cidr intMask The network mask used on pods for each node.
- Pod
Cidr string - Security
Group stringId The ID of security group where the current cluster worker node is located.
- Service
Cidr string - Slb
Internet boolEnabled Whether internet load balancer for API Server is created
- Vpc
Id string The ID of VPC where the current cluster is located.
- Vswitch
Ids List<string> The ID of VSwitches where the current cluster is located.
- Worker
Auto boolRenew - Worker
Auto intRenew Period - Worker
Data stringDisk Category The data disk size of worker node.
- Worker
Data intDisk Size The data disk category of worker node.
- Worker
Disk stringCategory The system disk category of worker node.
- Worker
Disk intSize The system disk size of worker node.
- Worker
Instance stringCharge Type - Worker
Instance List<string>Types The instance type of worker node.
- Worker
Nodes List<Pulumi.Ali Cloud. CS. Inputs. Get Kubernetes Clusters Cluster Worker Node Args> List of cluster worker nodes. It contains several attributes to
Block Nodes.- Worker
Numbers List<int> The ECS instance node number in the current container cluster.
- Worker
Period int - Worker
Period stringUnit
- Availability
Zone string The ID of availability zone.
- Cluster
Network stringType - Connections
Get
Kubernetes Clusters Cluster Connections Map of kubernetes cluster connection information. It contains several attributes to
Block Connections.- Id string
ID of the node.
- Image
Id string The ID of node image.
- Key
Name string The keypair of ssh login cluster node, you have to create it first.
- Log
Configs []GetKubernetes Clusters Cluster Log Config A list of one element containing information about the associated log store. It contains the following attributes:
- Master
Auto boolRenew - Master
Auto intRenew Period - Master
Disk stringCategory The system disk category of master node.
- Master
Disk intSize The system disk size of master node.
- Master
Instance stringCharge Type - Master
Instance []stringTypes The instance type of master node.
- Master
Nodes []GetKubernetes Clusters Cluster Master Node List of cluster master nodes. It contains several attributes to
Block Nodes.- Master
Period int - Master
Period stringUnit - Name string
Node name.
- Nat
Gateway stringId The ID of nat gateway used to launch kubernetes cluster.
- Node
Cidr intMask The network mask used on pods for each node.
- Pod
Cidr string - Security
Group stringId The ID of security group where the current cluster worker node is located.
- Service
Cidr string - Slb
Internet boolEnabled Whether internet load balancer for API Server is created
- Vpc
Id string The ID of VPC where the current cluster is located.
- Vswitch
Ids []string The ID of VSwitches where the current cluster is located.
- Worker
Auto boolRenew - Worker
Auto intRenew Period - Worker
Data stringDisk Category The data disk size of worker node.
- Worker
Data intDisk Size The data disk category of worker node.
- Worker
Disk stringCategory The system disk category of worker node.
- Worker
Disk intSize The system disk size of worker node.
- Worker
Instance stringCharge Type - Worker
Instance []stringTypes The instance type of worker node.
- Worker
Nodes []GetKubernetes Clusters Cluster Worker Node List of cluster worker nodes. It contains several attributes to
Block Nodes.- Worker
Numbers []int The ECS instance node number in the current container cluster.
- Worker
Period int - Worker
Period stringUnit
- availability
Zone string The ID of availability zone.
- cluster
Network stringType - connections
Get
Kubernetes Clusters Cluster Connections Map of kubernetes cluster connection information. It contains several attributes to
Block Connections.- id string
ID of the node.
- image
Id string The ID of node image.
- key
Name string The keypair of ssh login cluster node, you have to create it first.
- log
Configs GetKubernetes Clusters Cluster Log Config[] A list of one element containing information about the associated log store. It contains the following attributes:
- master
Auto booleanRenew - master
Auto numberRenew Period - master
Disk stringCategory The system disk category of master node.
- master
Disk numberSize The system disk size of master node.
- master
Instance stringCharge Type - master
Instance string[]Types The instance type of master node.
- master
Nodes GetKubernetes Clusters Cluster Master Node[] List of cluster master nodes. It contains several attributes to
Block Nodes.- master
Period number - master
Period stringUnit - name string
Node name.
- nat
Gateway stringId The ID of nat gateway used to launch kubernetes cluster.
- node
Cidr numberMask The network mask used on pods for each node.
- pod
Cidr string - security
Group stringId The ID of security group where the current cluster worker node is located.
- service
Cidr string - slb
Internet booleanEnabled Whether internet load balancer for API Server is created
- vpc
Id string The ID of VPC where the current cluster is located.
- vswitch
Ids string[] The ID of VSwitches where the current cluster is located.
- worker
Auto booleanRenew - worker
Auto numberRenew Period - worker
Data stringDisk Category The data disk size of worker node.
- worker
Data numberDisk Size The data disk category of worker node.
- worker
Disk stringCategory The system disk category of worker node.
- worker
Disk numberSize The system disk size of worker node.
- worker
Instance stringCharge Type - worker
Instance string[]Types The instance type of worker node.
- worker
Nodes GetKubernetes Clusters Cluster Worker Node[] List of cluster worker nodes. It contains several attributes to
Block Nodes.- worker
Numbers number[] The ECS instance node number in the current container cluster.
- worker
Period number - worker
Period stringUnit
- availability_
zone str The ID of availability zone.
- cluster
Network strType - connections
Dict[Get
Kubernetes Clusters Cluster Connections] Map of kubernetes cluster connection information. It contains several attributes to
Block Connections.- id str
ID of the node.
- image_
id str The ID of node image.
- key_
name str The keypair of ssh login cluster node, you have to create it first.
- log
Configs List[GetKubernetes Clusters Cluster Log Config] A list of one element containing information about the associated log store. It contains the following attributes:
- master_
auto_ boolrenew - master_
auto_ floatrenew_ period - master_
disk_ strcategory The system disk category of master node.
- master_
disk_ floatsize The system disk size of master node.
- master_
instance_ strcharge_ type - master_
instance_ List[str]types The instance type of master node.
- master_
nodes List[GetKubernetes Clusters Cluster Master Node] List of cluster master nodes. It contains several attributes to
Block Nodes.- master_
period float - master_
period_ strunit - name str
Node name.
- nat_
gateway_ strid The ID of nat gateway used to launch kubernetes cluster.
- node_
cidr_ floatmask The network mask used on pods for each node.
- pod_
cidr str - security_
group_ strid The ID of security group where the current cluster worker node is located.
- service_
cidr str - slb_
internet_ boolenabled Whether internet load balancer for API Server is created
- vpc_
id str The ID of VPC where the current cluster is located.
- vswitch_
ids List[str] The ID of VSwitches where the current cluster is located.
- worker
Numbers List[Integer] The ECS instance node number in the current container cluster.
- worker_
auto_ boolrenew - worker_
auto_ floatrenew_ period - worker_
data_ strdisk_ category The data disk size of worker node.
- worker_
data_ floatdisk_ size The data disk category of worker node.
- worker_
disk_ strcategory The system disk category of worker node.
- worker_
disk_ floatsize The system disk size of worker node.
- worker_
instance_ strcharge_ type - worker_
instance_ List[str]types The instance type of worker node.
- worker_
nodes List[GetKubernetes Clusters Cluster Worker Node] List of cluster worker nodes. It contains several attributes to
Block Nodes.- worker_
period float - worker_
period_ strunit
GetKubernetesClustersClusterConnections
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Api
Server stringInternet API Server Internet endpoint.
- Api
Server stringIntranet API Server Intranet endpoint.
- Master
Public stringIp Master node SSH IP address.
- Service
Domain string Service Access Domain.
- Api
Server stringInternet API Server Internet endpoint.
- Api
Server stringIntranet API Server Intranet endpoint.
- Master
Public stringIp Master node SSH IP address.
- Service
Domain string Service Access Domain.
- api
Server stringInternet API Server Internet endpoint.
- api
Server stringIntranet API Server Intranet endpoint.
- master
Public stringIp Master node SSH IP address.
- service
Domain string Service Access Domain.
- api_
server_ strinternet API Server Internet endpoint.
- api_
server_ strintranet API Server Intranet endpoint.
- master_
public_ strip Master node SSH IP address.
- service_
domain str Service Access Domain.
GetKubernetesClustersClusterLogConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetKubernetesClustersClusterMasterNode
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetKubernetesClustersClusterWorkerNode
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.