1. Packages
  2. Packages
  3. Linode Provider
  4. API Docs
  5. getLkeCluster
Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
linode logo
Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Provides details about an LKE Cluster.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var my_cluster = Linode.GetLkeCluster.Invoke(new()
        {
            Id = 123,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.LookupLkeCluster(ctx, &linode.LookupLkeClusterArgs{
    			Id: 123,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetLkeClusterArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var my-cluster = LinodeFunctions.getLkeCluster(GetLkeClusterArgs.builder()
                .id(123)
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const my-cluster = linode.getLkeCluster({
        id: 123,
    });
    
    import pulumi
    import pulumi_linode as linode
    
    my_cluster = linode.get_lke_cluster(id=123)
    
    variables:
      my-cluster:
        fn::invoke:
          Function: linode:getLkeCluster
          Arguments:
            id: 123
    

    Using getLkeCluster

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLkeCluster(args: GetLkeClusterArgs, opts?: InvokeOptions): Promise<GetLkeClusterResult>
    function getLkeClusterOutput(args: GetLkeClusterOutputArgs, opts?: InvokeOptions): Output<GetLkeClusterResult>
    def get_lke_cluster(id: Optional[int] = None,
                        opts: Optional[InvokeOptions] = None) -> GetLkeClusterResult
    def get_lke_cluster_output(id: Optional[pulumi.Input[int]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetLkeClusterResult]
    func LookupLkeCluster(ctx *Context, args *LookupLkeClusterArgs, opts ...InvokeOption) (*LookupLkeClusterResult, error)
    func LookupLkeClusterOutput(ctx *Context, args *LookupLkeClusterOutputArgs, opts ...InvokeOption) LookupLkeClusterResultOutput

    > Note: This function is named LookupLkeCluster in the Go SDK.

    public static class GetLkeCluster 
    {
        public static Task<GetLkeClusterResult> InvokeAsync(GetLkeClusterArgs args, InvokeOptions? opts = null)
        public static Output<GetLkeClusterResult> Invoke(GetLkeClusterInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLkeClusterResult> getLkeCluster(GetLkeClusterArgs args, InvokeOptions options)
    public static Output<GetLkeClusterResult> getLkeCluster(GetLkeClusterArgs args, InvokeOptions options)
    
    fn::invoke:
      function: linode:index/getLkeCluster:getLkeCluster
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id int
    The LKE Cluster's ID.
    Id int
    The LKE Cluster's ID.
    id Integer
    The LKE Cluster's ID.
    id number
    The LKE Cluster's ID.
    id int
    The LKE Cluster's ID.
    id Number
    The LKE Cluster's ID.

    getLkeCluster Result

    The following output properties are available:

    ApiEndpoints List<string>
    The endpoints for the Kubernetes API server.
    ControlPlanes List<GetLkeClusterControlPlane>
    DashboardUrl string
    The Kubernetes Dashboard access URL for this cluster.
    Id int
    The ID of the node.
    K8sVersion string
    The Kubernetes version for this Kubernetes cluster in the format of major.minor (e.g. 1.17).
    Kubeconfig string
    The base64 encoded kubeconfig for the Kubernetes cluster.
    Label string
    Pools List<GetLkeClusterPool>
    Node pools associated with this cluster.
    Region string
    This Kubernetes cluster's location.
    Status string
    The status of the node. (ready, not_ready)
    Tags List<string>
    The tags applied to the cluster.
    ApiEndpoints []string
    The endpoints for the Kubernetes API server.
    ControlPlanes []GetLkeClusterControlPlane
    DashboardUrl string
    The Kubernetes Dashboard access URL for this cluster.
    Id int
    The ID of the node.
    K8sVersion string
    The Kubernetes version for this Kubernetes cluster in the format of major.minor (e.g. 1.17).
    Kubeconfig string
    The base64 encoded kubeconfig for the Kubernetes cluster.
    Label string
    Pools []GetLkeClusterPool
    Node pools associated with this cluster.
    Region string
    This Kubernetes cluster's location.
    Status string
    The status of the node. (ready, not_ready)
    Tags []string
    The tags applied to the cluster.
    apiEndpoints List<String>
    The endpoints for the Kubernetes API server.
    controlPlanes List<GetLkeClusterControlPlane>
    dashboardUrl String
    The Kubernetes Dashboard access URL for this cluster.
    id Integer
    The ID of the node.
    k8sVersion String
    The Kubernetes version for this Kubernetes cluster in the format of major.minor (e.g. 1.17).
    kubeconfig String
    The base64 encoded kubeconfig for the Kubernetes cluster.
    label String
    pools List<GetLkeClusterPool>
    Node pools associated with this cluster.
    region String
    This Kubernetes cluster's location.
    status String
    The status of the node. (ready, not_ready)
    tags List<String>
    The tags applied to the cluster.
    apiEndpoints string[]
    The endpoints for the Kubernetes API server.
    controlPlanes GetLkeClusterControlPlane[]
    dashboardUrl string
    The Kubernetes Dashboard access URL for this cluster.
    id number
    The ID of the node.
    k8sVersion string
    The Kubernetes version for this Kubernetes cluster in the format of major.minor (e.g. 1.17).
    kubeconfig string
    The base64 encoded kubeconfig for the Kubernetes cluster.
    label string
    pools GetLkeClusterPool[]
    Node pools associated with this cluster.
    region string
    This Kubernetes cluster's location.
    status string
    The status of the node. (ready, not_ready)
    tags string[]
    The tags applied to the cluster.
    api_endpoints Sequence[str]
    The endpoints for the Kubernetes API server.
    control_planes Sequence[GetLkeClusterControlPlane]
    dashboard_url str
    The Kubernetes Dashboard access URL for this cluster.
    id int
    The ID of the node.
    k8s_version str
    The Kubernetes version for this Kubernetes cluster in the format of major.minor (e.g. 1.17).
    kubeconfig str
    The base64 encoded kubeconfig for the Kubernetes cluster.
    label str
    pools Sequence[GetLkeClusterPool]
    Node pools associated with this cluster.
    region str
    This Kubernetes cluster's location.
    status str
    The status of the node. (ready, not_ready)
    tags Sequence[str]
    The tags applied to the cluster.
    apiEndpoints List<String>
    The endpoints for the Kubernetes API server.
    controlPlanes List<Property Map>
    dashboardUrl String
    The Kubernetes Dashboard access URL for this cluster.
    id Number
    The ID of the node.
    k8sVersion String
    The Kubernetes version for this Kubernetes cluster in the format of major.minor (e.g. 1.17).
    kubeconfig String
    The base64 encoded kubeconfig for the Kubernetes cluster.
    label String
    pools List<Property Map>
    Node pools associated with this cluster.
    region String
    This Kubernetes cluster's location.
    status String
    The status of the node. (ready, not_ready)
    tags List<String>
    The tags applied to the cluster.

    Supporting Types

    GetLkeClusterControlPlane

    GetLkeClusterPool

    Autoscalers List<GetLkeClusterPoolAutoscaler>
    The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
    Count int
    The number of nodes in the Node Pool.
    Id int
    The LKE Cluster's ID.
    Nodes List<GetLkeClusterPoolNode>
    The nodes in the Node Pool.
    Type string
    The linode type for all of the nodes in the Node Pool. See all node types here.
    Autoscalers []GetLkeClusterPoolAutoscaler
    The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
    Count int
    The number of nodes in the Node Pool.
    Id int
    The LKE Cluster's ID.
    Nodes []GetLkeClusterPoolNode
    The nodes in the Node Pool.
    Type string
    The linode type for all of the nodes in the Node Pool. See all node types here.
    autoscalers List<GetLkeClusterPoolAutoscaler>
    The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
    count Integer
    The number of nodes in the Node Pool.
    id Integer
    The LKE Cluster's ID.
    nodes List<GetLkeClusterPoolNode>
    The nodes in the Node Pool.
    type String
    The linode type for all of the nodes in the Node Pool. See all node types here.
    autoscalers GetLkeClusterPoolAutoscaler[]
    The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
    count number
    The number of nodes in the Node Pool.
    id number
    The LKE Cluster's ID.
    nodes GetLkeClusterPoolNode[]
    The nodes in the Node Pool.
    type string
    The linode type for all of the nodes in the Node Pool. See all node types here.
    autoscalers Sequence[GetLkeClusterPoolAutoscaler]
    The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
    count int
    The number of nodes in the Node Pool.
    id int
    The LKE Cluster's ID.
    nodes Sequence[GetLkeClusterPoolNode]
    The nodes in the Node Pool.
    type str
    The linode type for all of the nodes in the Node Pool. See all node types here.
    autoscalers List<Property Map>
    The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
    count Number
    The number of nodes in the Node Pool.
    id Number
    The LKE Cluster's ID.
    nodes List<Property Map>
    The nodes in the Node Pool.
    type String
    The linode type for all of the nodes in the Node Pool. See all node types here.

    GetLkeClusterPoolAutoscaler

    Max int
    The maximum number of nodes to autoscale to.
    Min int
    The minimum number of nodes to autoscale to.
    Max int
    The maximum number of nodes to autoscale to.
    Min int
    The minimum number of nodes to autoscale to.
    max Integer
    The maximum number of nodes to autoscale to.
    min Integer
    The minimum number of nodes to autoscale to.
    max number
    The maximum number of nodes to autoscale to.
    min number
    The minimum number of nodes to autoscale to.
    max int
    The maximum number of nodes to autoscale to.
    min int
    The minimum number of nodes to autoscale to.
    max Number
    The maximum number of nodes to autoscale to.
    min Number
    The minimum number of nodes to autoscale to.

    GetLkeClusterPoolNode

    Id string
    The LKE Cluster's ID.
    InstanceId int
    The ID of the underlying Linode instance.
    Status string
    The status of the node. (ready, not_ready)
    Id string
    The LKE Cluster's ID.
    InstanceId int
    The ID of the underlying Linode instance.
    Status string
    The status of the node. (ready, not_ready)
    id String
    The LKE Cluster's ID.
    instanceId Integer
    The ID of the underlying Linode instance.
    status String
    The status of the node. (ready, not_ready)
    id string
    The LKE Cluster's ID.
    instanceId number
    The ID of the underlying Linode instance.
    status string
    The status of the node. (ready, not_ready)
    id str
    The LKE Cluster's ID.
    instance_id int
    The ID of the underlying Linode instance.
    status str
    The status of the node. (ready, not_ready)
    id String
    The LKE Cluster's ID.
    instanceId Number
    The ID of the underlying Linode instance.
    status String
    The status of the node. (ready, not_ready)

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo
    Viewing docs for Linode v3.12.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.