LkeCluster
Manages an LKE cluster.
Example Usage
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var my_cluster = new Linode.LkeCluster("my-cluster", new Linode.LkeClusterArgs
{
K8sVersion = "1.17",
Label = "my-cluster",
Pools =
{
new Linode.Inputs.LkeClusterPoolArgs
{
Count = 3,
Type = "g6-standard-2",
},
},
Region = "us-central",
Tags =
{
"prod",
},
});
}
}
Coming soon!
import pulumi
import pulumi_linode as linode
my_cluster = linode.LkeCluster("my-cluster",
k8s_version="1.17",
label="my-cluster",
pools=[{
"count": 3,
"type": "g6-standard-2",
}],
region="us-central",
tags=["prod"])import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const my_cluster = new linode.LkeCluster("my-cluster", {
k8sVersion: "1.17",
label: "my-cluster",
pools: [{
count: 3,
type: "g6-standard-2",
}],
region: "us-central",
tags: ["prod"],
});Create a LkeCluster Resource
new LkeCluster(name: string, args: LkeClusterArgs, opts?: CustomResourceOptions);def LkeCluster(resource_name, opts=None, k8s_version=None, label=None, pools=None, region=None, tags=None, __props__=None);func NewLkeCluster(ctx *Context, name string, args LkeClusterArgs, opts ...ResourceOption) (*LkeCluster, error)public LkeCluster(string name, LkeClusterArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args LkeClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LkeClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LkeClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
LkeCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The LkeCluster resource accepts the following input properties:
- K8s
Version string The desired Kubernetes version for this Kubernetes cluster in the format of
major.minor(e.g.1.17), and the latest supported patch version will be deployed.- Label string
This Kubernetes cluster’s unique label.
- Pools
List<Lke
Cluster Pool Args> Additional nested attributes:
- Region string
This Kubernetes cluster’s location.
- List<string>
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- K8s
Version string The desired Kubernetes version for this Kubernetes cluster in the format of
major.minor(e.g.1.17), and the latest supported patch version will be deployed.- Label string
This Kubernetes cluster’s unique label.
- Pools
[]Lke
Cluster Pool Additional nested attributes:
- Region string
This Kubernetes cluster’s location.
- []string
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- k8s
Version string The desired Kubernetes version for this Kubernetes cluster in the format of
major.minor(e.g.1.17), and the latest supported patch version will be deployed.- label string
This Kubernetes cluster’s unique label.
- pools
Lke
Cluster Pool[] Additional nested attributes:
- region string
This Kubernetes cluster’s location.
- string[]
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- k8s_
version str The desired Kubernetes version for this Kubernetes cluster in the format of
major.minor(e.g.1.17), and the latest supported patch version will be deployed.- label str
This Kubernetes cluster’s unique label.
- pools
List[Lke
Cluster Pool] Additional nested attributes:
- region str
This Kubernetes cluster’s location.
- List[str]
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
Outputs
All input properties are implicitly available as output properties. Additionally, the LkeCluster resource produces the following output properties:
- Api
Endpoints List<string> The endpoints for the Kubernetes API server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kubeconfig string
The base64 encoded kubeconfig for the Kubernetes cluster.
- Status string
The status of the node.
- Api
Endpoints []string The endpoints for the Kubernetes API server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kubeconfig string
The base64 encoded kubeconfig for the Kubernetes cluster.
- Status string
The status of the node.
- api
Endpoints string[] The endpoints for the Kubernetes API server.
- id string
- The provider-assigned unique ID for this managed resource.
- kubeconfig string
The base64 encoded kubeconfig for the Kubernetes cluster.
- status string
The status of the node.
- api_
endpoints List[str] The endpoints for the Kubernetes API server.
- id str
- The provider-assigned unique ID for this managed resource.
- kubeconfig str
The base64 encoded kubeconfig for the Kubernetes cluster.
- status str
The status of the node.
Look up an Existing LkeCluster Resource
Get an existing LkeCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LkeClusterState, opts?: CustomResourceOptions): LkeClusterstatic get(resource_name, id, opts=None, api_endpoints=None, k8s_version=None, kubeconfig=None, label=None, pools=None, region=None, status=None, tags=None, __props__=None);func GetLkeCluster(ctx *Context, name string, id IDInput, state *LkeClusterState, opts ...ResourceOption) (*LkeCluster, error)public static LkeCluster Get(string name, Input<string> id, LkeClusterState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Api
Endpoints List<string> The endpoints for the Kubernetes API server.
- K8s
Version string The desired Kubernetes version for this Kubernetes cluster in the format of
major.minor(e.g.1.17), and the latest supported patch version will be deployed.- Kubeconfig string
The base64 encoded kubeconfig for the Kubernetes cluster.
- Label string
This Kubernetes cluster’s unique label.
- Pools
List<Lke
Cluster Pool Args> Additional nested attributes:
- Region string
This Kubernetes cluster’s location.
- Status string
The status of the node.
- List<string>
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- Api
Endpoints []string The endpoints for the Kubernetes API server.
- K8s
Version string The desired Kubernetes version for this Kubernetes cluster in the format of
major.minor(e.g.1.17), and the latest supported patch version will be deployed.- Kubeconfig string
The base64 encoded kubeconfig for the Kubernetes cluster.
- Label string
This Kubernetes cluster’s unique label.
- Pools
[]Lke
Cluster Pool Additional nested attributes:
- Region string
This Kubernetes cluster’s location.
- Status string
The status of the node.
- []string
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- api
Endpoints string[] The endpoints for the Kubernetes API server.
- k8s
Version string The desired Kubernetes version for this Kubernetes cluster in the format of
major.minor(e.g.1.17), and the latest supported patch version will be deployed.- kubeconfig string
The base64 encoded kubeconfig for the Kubernetes cluster.
- label string
This Kubernetes cluster’s unique label.
- pools
Lke
Cluster Pool[] Additional nested attributes:
- region string
This Kubernetes cluster’s location.
- status string
The status of the node.
- string[]
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
- api_
endpoints List[str] The endpoints for the Kubernetes API server.
- k8s_
version str The desired Kubernetes version for this Kubernetes cluster in the format of
major.minor(e.g.1.17), and the latest supported patch version will be deployed.- kubeconfig str
The base64 encoded kubeconfig for the Kubernetes cluster.
- label str
This Kubernetes cluster’s unique label.
- pools
List[Lke
Cluster Pool] Additional nested attributes:
- region str
This Kubernetes cluster’s location.
- status str
The status of the node.
- List[str]
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
Supporting Types
LkeClusterPool
LkeClusterPoolNode
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.