Class 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",
},
});
}
}
Inherited Members
Namespace: Pulumi.Linode
Assembly: Pulumi.Linode.dll
Syntax
public class LkeCluster : CustomResource
Constructors
View SourceLkeCluster(String, LkeClusterArgs, CustomResourceOptions)
Create a LkeCluster resource with the given unique name, arguments, and options.
Declaration
public LkeCluster(string name, LkeClusterArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| LkeClusterArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceApiEndpoints
The endpoints for the Kubernetes API server.
Declaration
public Output<ImmutableArray<string>> ApiEndpoints { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
K8sVersion
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.
Declaration
public Output<string> K8sVersion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Kubeconfig
The base64 encoded kubeconfig for the Kubernetes cluster.
Declaration
public Output<string> Kubeconfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Label
This Kubernetes cluster's unique label.
Declaration
public Output<string> Label { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Pools
Additional nested attributes:
Declaration
public Output<ImmutableArray<LkeClusterPool>> Pools { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<LkeClusterPool>> |
Region
This Kubernetes cluster's location.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
The status of the node.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
An array of tags applied to the Kubernetes cluster. Tags are for organizational purposes only.
Declaration
public Output<ImmutableArray<string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(String, Input<String>, LkeClusterState, CustomResourceOptions)
Get an existing LkeCluster resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static LkeCluster Get(string name, Input<string> id, LkeClusterState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| LkeClusterState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| LkeCluster |