KubernetesCluster
Provides a DigitalOcean Kubernetes cluster resource. This can be used to create, delete, and modify clusters. For more information see the official documentation.
Example Usage
Basic Example
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
class MyStack : Stack
{
public MyStack()
{
var foo = new DigitalOcean.KubernetesCluster("foo", new DigitalOcean.KubernetesClusterArgs
{
NodePool = new DigitalOcean.Inputs.KubernetesClusterNodePoolArgs
{
Name = "worker-pool",
NodeCount = 3,
Size = "s-2vcpu-2gb",
},
Region = "nyc1",
Version = "1.15.5-do.1",
});
}
}
Coming soon!
import pulumi
import pulumi_digitalocean as digitalocean
foo = digitalocean.KubernetesCluster("foo",
node_pool={
"name": "worker-pool",
"node_count": 3,
"size": "s-2vcpu-2gb",
},
region="nyc1",
version="1.15.5-do.1")import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const foo = new digitalocean.KubernetesCluster("foo", {
nodePool: {
name: "worker-pool",
nodeCount: 3,
size: "s-2vcpu-2gb",
},
region: "nyc1",
// Grab the latest version slug from `doctl kubernetes options versions`
version: "1.15.5-do.1",
});Autoscaling Example
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
class MyStack : Stack
{
public MyStack()
{
var foo = new DigitalOcean.KubernetesCluster("foo", new DigitalOcean.KubernetesClusterArgs
{
NodePool = new DigitalOcean.Inputs.KubernetesClusterNodePoolArgs
{
AutoScale = true,
MaxNodes = 5,
MinNodes = 1,
Name = "autoscale-worker-pool",
Size = "s-2vcpu-2gb",
},
Region = "nyc1",
Version = "1.15.5-do.1",
});
}
}
Coming soon!
import pulumi
import pulumi_digitalocean as digitalocean
foo = digitalocean.KubernetesCluster("foo",
node_pool={
"auto_scale": True,
"max_nodes": 5,
"min_nodes": 1,
"name": "autoscale-worker-pool",
"size": "s-2vcpu-2gb",
},
region="nyc1",
version="1.15.5-do.1")import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const foo = new digitalocean.KubernetesCluster("foo", {
nodePool: {
autoScale: true,
maxNodes: 5,
minNodes: 1,
name: "autoscale-worker-pool",
size: "s-2vcpu-2gb",
},
region: "nyc1",
version: "1.15.5-do.1",
});Create a KubernetesCluster Resource
new KubernetesCluster(name: string, args: KubernetesClusterArgs, opts?: CustomResourceOptions);def KubernetesCluster(resource_name, opts=None, name=None, node_pool=None, region=None, tags=None, version=None, vpc_uuid=None, __props__=None);func NewKubernetesCluster(ctx *Context, name string, args KubernetesClusterArgs, opts ...ResourceOption) (*KubernetesCluster, error)public KubernetesCluster(string name, KubernetesClusterArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args KubernetesClusterArgs
- 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 KubernetesClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
KubernetesCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The KubernetesCluster resource accepts the following input properties:
- Node
Pool Pulumi.Digital Ocean. Inputs. Kubernetes Cluster Node Pool Args A block representing the cluster’s default node pool. Additional node pools may be added to the cluster using the
digitalocean..KubernetesNodePoolresource. The following arguments may be specified: -name- (Required) A name for the node pool. -size- (Required) The slug identifier for the type of Droplet to be used as workers in the node pool. -node_count- (Optional) The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. -auto_scale- (Optional) Enable auto-scaling of the number of nodes in the node pool within the given min/max range. -min_nodes- (Optional) If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- (Optional) If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- (Optional) A list of tag names to be applied to the Kubernetes cluster. -labels- (Optional) A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources.- Region string
The slug identifier for the region where the Kubernetes cluster will be created.
- Version string
The slug identifier for the version of Kubernetes used for the cluster. Use doctl to find the available versions
doctl kubernetes options versions. (Note: A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)- Name string
A name for the Kubernetes cluster.
- List<string>
A list of tag names to be applied to the Kubernetes cluster.
- Vpc
Uuid string The ID of the VPC where the Kubernetes cluster will be located.
- Node
Pool KubernetesCluster Node Pool A block representing the cluster’s default node pool. Additional node pools may be added to the cluster using the
digitalocean..KubernetesNodePoolresource. The following arguments may be specified: -name- (Required) A name for the node pool. -size- (Required) The slug identifier for the type of Droplet to be used as workers in the node pool. -node_count- (Optional) The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. -auto_scale- (Optional) Enable auto-scaling of the number of nodes in the node pool within the given min/max range. -min_nodes- (Optional) If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- (Optional) If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- (Optional) A list of tag names to be applied to the Kubernetes cluster. -labels- (Optional) A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources.- Region string
The slug identifier for the region where the Kubernetes cluster will be created.
- Version string
The slug identifier for the version of Kubernetes used for the cluster. Use doctl to find the available versions
doctl kubernetes options versions. (Note: A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)- Name string
A name for the Kubernetes cluster.
- []string
A list of tag names to be applied to the Kubernetes cluster.
- Vpc
Uuid string The ID of the VPC where the Kubernetes cluster will be located.
- node
Pool KubernetesCluster Node Pool A block representing the cluster’s default node pool. Additional node pools may be added to the cluster using the
digitalocean..KubernetesNodePoolresource. The following arguments may be specified: -name- (Required) A name for the node pool. -size- (Required) The slug identifier for the type of Droplet to be used as workers in the node pool. -node_count- (Optional) The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. -auto_scale- (Optional) Enable auto-scaling of the number of nodes in the node pool within the given min/max range. -min_nodes- (Optional) If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- (Optional) If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- (Optional) A list of tag names to be applied to the Kubernetes cluster. -labels- (Optional) A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources.- region Region
The slug identifier for the region where the Kubernetes cluster will be created.
- version string
The slug identifier for the version of Kubernetes used for the cluster. Use doctl to find the available versions
doctl kubernetes options versions. (Note: A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)- name string
A name for the Kubernetes cluster.
- string[]
A list of tag names to be applied to the Kubernetes cluster.
- vpc
Uuid string The ID of the VPC where the Kubernetes cluster will be located.
- node_
pool Dict[KubernetesCluster Node Pool] A block representing the cluster’s default node pool. Additional node pools may be added to the cluster using the
digitalocean..KubernetesNodePoolresource. The following arguments may be specified: -name- (Required) A name for the node pool. -size- (Required) The slug identifier for the type of Droplet to be used as workers in the node pool. -node_count- (Optional) The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. -auto_scale- (Optional) Enable auto-scaling of the number of nodes in the node pool within the given min/max range. -min_nodes- (Optional) If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- (Optional) If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- (Optional) A list of tag names to be applied to the Kubernetes cluster. -labels- (Optional) A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources.- region str
The slug identifier for the region where the Kubernetes cluster will be created.
- version str
The slug identifier for the version of Kubernetes used for the cluster. Use doctl to find the available versions
doctl kubernetes options versions. (Note: A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)- name str
A name for the Kubernetes cluster.
- List[str]
A list of tag names to be applied to the Kubernetes cluster.
- vpc_
uuid str The ID of the VPC where the Kubernetes cluster will be located.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesCluster resource produces the following output properties:
- Cluster
Subnet string The range of IP addresses in the overlay network of the Kubernetes cluster.
- Created
At string The date and time when the Kubernetes cluster was created.
- Endpoint string
The base URL of the API server on the Kubernetes master node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Address string
The public IPv4 address of the Kubernetes master node.
- Kube
Configs List<Pulumi.Digital Ocean. Outputs. Kubernetes Cluster Kube Config> - Service
Subnet string The range of assignable IP addresses for services running in the Kubernetes cluster.
- Status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- Updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.
- Cluster
Subnet string The range of IP addresses in the overlay network of the Kubernetes cluster.
- Created
At string The date and time when the Kubernetes cluster was created.
- Endpoint string
The base URL of the API server on the Kubernetes master node.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Address string
The public IPv4 address of the Kubernetes master node.
- Kube
Configs []KubernetesCluster Kube Config - Service
Subnet string The range of assignable IP addresses for services running in the Kubernetes cluster.
- Status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- Updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.
- cluster
Subnet string The range of IP addresses in the overlay network of the Kubernetes cluster.
- created
At string The date and time when the Kubernetes cluster was created.
- endpoint string
The base URL of the API server on the Kubernetes master node.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv4Address string
The public IPv4 address of the Kubernetes master node.
- kube
Configs KubernetesCluster Kube Config[] - service
Subnet string The range of assignable IP addresses for services running in the Kubernetes cluster.
- status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.
- cluster_
subnet str The range of IP addresses in the overlay network of the Kubernetes cluster.
- created_
at str The date and time when the Kubernetes cluster was created.
- endpoint str
The base URL of the API server on the Kubernetes master node.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv4_
address str The public IPv4 address of the Kubernetes master node.
- kube_
configs List[KubernetesCluster Kube Config] - service_
subnet str The range of assignable IP addresses for services running in the Kubernetes cluster.
- status str
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- updated_
at str The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.
Look up an Existing KubernetesCluster Resource
Get an existing KubernetesCluster 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?: KubernetesClusterState, opts?: CustomResourceOptions): KubernetesClusterstatic get(resource_name, id, opts=None, cluster_subnet=None, created_at=None, endpoint=None, ipv4_address=None, kube_configs=None, name=None, node_pool=None, region=None, service_subnet=None, status=None, tags=None, updated_at=None, version=None, vpc_uuid=None, __props__=None);func GetKubernetesCluster(ctx *Context, name string, id IDInput, state *KubernetesClusterState, opts ...ResourceOption) (*KubernetesCluster, error)public static KubernetesCluster Get(string name, Input<string> id, KubernetesClusterState? 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:
- Cluster
Subnet string The range of IP addresses in the overlay network of the Kubernetes cluster.
- Created
At string The date and time when the Kubernetes cluster was created.
- Endpoint string
The base URL of the API server on the Kubernetes master node.
- Ipv4Address string
The public IPv4 address of the Kubernetes master node.
- Kube
Configs List<Pulumi.Digital Ocean. Inputs. Kubernetes Cluster Kube Config Args> - Name string
A name for the Kubernetes cluster.
- Node
Pool Pulumi.Digital Ocean. Inputs. Kubernetes Cluster Node Pool Args A block representing the cluster’s default node pool. Additional node pools may be added to the cluster using the
digitalocean..KubernetesNodePoolresource. The following arguments may be specified: -name- (Required) A name for the node pool. -size- (Required) The slug identifier for the type of Droplet to be used as workers in the node pool. -node_count- (Optional) The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. -auto_scale- (Optional) Enable auto-scaling of the number of nodes in the node pool within the given min/max range. -min_nodes- (Optional) If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- (Optional) If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- (Optional) A list of tag names to be applied to the Kubernetes cluster. -labels- (Optional) A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources.- Region string
The slug identifier for the region where the Kubernetes cluster will be created.
- Service
Subnet string The range of assignable IP addresses for services running in the Kubernetes cluster.
- Status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- List<string>
A list of tag names to be applied to the Kubernetes cluster.
- Updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.- Version string
The slug identifier for the version of Kubernetes used for the cluster. Use doctl to find the available versions
doctl kubernetes options versions. (Note: A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)- Vpc
Uuid string The ID of the VPC where the Kubernetes cluster will be located.
- Cluster
Subnet string The range of IP addresses in the overlay network of the Kubernetes cluster.
- Created
At string The date and time when the Kubernetes cluster was created.
- Endpoint string
The base URL of the API server on the Kubernetes master node.
- Ipv4Address string
The public IPv4 address of the Kubernetes master node.
- Kube
Configs []KubernetesCluster Kube Config - Name string
A name for the Kubernetes cluster.
- Node
Pool KubernetesCluster Node Pool A block representing the cluster’s default node pool. Additional node pools may be added to the cluster using the
digitalocean..KubernetesNodePoolresource. The following arguments may be specified: -name- (Required) A name for the node pool. -size- (Required) The slug identifier for the type of Droplet to be used as workers in the node pool. -node_count- (Optional) The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. -auto_scale- (Optional) Enable auto-scaling of the number of nodes in the node pool within the given min/max range. -min_nodes- (Optional) If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- (Optional) If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- (Optional) A list of tag names to be applied to the Kubernetes cluster. -labels- (Optional) A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources.- Region string
The slug identifier for the region where the Kubernetes cluster will be created.
- Service
Subnet string The range of assignable IP addresses for services running in the Kubernetes cluster.
- Status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- []string
A list of tag names to be applied to the Kubernetes cluster.
- Updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.- Version string
The slug identifier for the version of Kubernetes used for the cluster. Use doctl to find the available versions
doctl kubernetes options versions. (Note: A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)- Vpc
Uuid string The ID of the VPC where the Kubernetes cluster will be located.
- cluster
Subnet string The range of IP addresses in the overlay network of the Kubernetes cluster.
- created
At string The date and time when the Kubernetes cluster was created.
- endpoint string
The base URL of the API server on the Kubernetes master node.
- ipv4Address string
The public IPv4 address of the Kubernetes master node.
- kube
Configs KubernetesCluster Kube Config[] - name string
A name for the Kubernetes cluster.
- node
Pool KubernetesCluster Node Pool A block representing the cluster’s default node pool. Additional node pools may be added to the cluster using the
digitalocean..KubernetesNodePoolresource. The following arguments may be specified: -name- (Required) A name for the node pool. -size- (Required) The slug identifier for the type of Droplet to be used as workers in the node pool. -node_count- (Optional) The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. -auto_scale- (Optional) Enable auto-scaling of the number of nodes in the node pool within the given min/max range. -min_nodes- (Optional) If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- (Optional) If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- (Optional) A list of tag names to be applied to the Kubernetes cluster. -labels- (Optional) A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources.- region Region
The slug identifier for the region where the Kubernetes cluster will be created.
- service
Subnet string The range of assignable IP addresses for services running in the Kubernetes cluster.
- status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- string[]
A list of tag names to be applied to the Kubernetes cluster.
- updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.- version string
The slug identifier for the version of Kubernetes used for the cluster. Use doctl to find the available versions
doctl kubernetes options versions. (Note: A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)- vpc
Uuid string The ID of the VPC where the Kubernetes cluster will be located.
- cluster_
subnet str The range of IP addresses in the overlay network of the Kubernetes cluster.
- created_
at str The date and time when the Kubernetes cluster was created.
- endpoint str
The base URL of the API server on the Kubernetes master node.
- ipv4_
address str The public IPv4 address of the Kubernetes master node.
- kube_
configs List[KubernetesCluster Kube Config] - name str
A name for the Kubernetes cluster.
- node_
pool Dict[KubernetesCluster Node Pool] A block representing the cluster’s default node pool. Additional node pools may be added to the cluster using the
digitalocean..KubernetesNodePoolresource. The following arguments may be specified: -name- (Required) A name for the node pool. -size- (Required) The slug identifier for the type of Droplet to be used as workers in the node pool. -node_count- (Optional) The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. -auto_scale- (Optional) Enable auto-scaling of the number of nodes in the node pool within the given min/max range. -min_nodes- (Optional) If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- (Optional) If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- (Optional) A list of tag names to be applied to the Kubernetes cluster. -labels- (Optional) A map of key/value pairs to apply to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources.- region str
The slug identifier for the region where the Kubernetes cluster will be created.
- service_
subnet str The range of assignable IP addresses for services running in the Kubernetes cluster.
- status str
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- List[str]
A list of tag names to be applied to the Kubernetes cluster.
- updated_
at str The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.- version str
The slug identifier for the version of Kubernetes used for the cluster. Use doctl to find the available versions
doctl kubernetes options versions. (Note: A cluster may only be upgraded to newer versions in-place. If the version is decreased, a new resource will be created.)- vpc_
uuid str The ID of the VPC where the Kubernetes cluster will be located.
Supporting Types
KubernetesClusterKubeConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
KubernetesClusterNodePool
- Name string
A name for the Kubernetes cluster.
- Size string
- Actual
Node intCount - Auto
Scale bool - Id string
A unique ID that can be used to identify and reference a Kubernetes cluster.
- Labels Dictionary<string, string>
- Max
Nodes int - Min
Nodes int - Node
Count int - Nodes
List<Pulumi.
Digital Ocean. Inputs. Kubernetes Cluster Node Pool Node Args> - List<string>
A list of tag names to be applied to the Kubernetes cluster.
- Name string
A name for the Kubernetes cluster.
- Size string
- Actual
Node intCount - Auto
Scale bool - Id string
A unique ID that can be used to identify and reference a Kubernetes cluster.
- Labels map[string]string
- Max
Nodes int - Min
Nodes int - Node
Count int - Nodes
[]Kubernetes
Cluster Node Pool Node - []string
A list of tag names to be applied to the Kubernetes cluster.
- name string
A name for the Kubernetes cluster.
- size string
- actual
Node numberCount - auto
Scale boolean - id string
A unique ID that can be used to identify and reference a Kubernetes cluster.
- labels {[key: string]: string}
- max
Nodes number - min
Nodes number - node
Count number - nodes
Kubernetes
Cluster Node Pool Node[] - string[]
A list of tag names to be applied to the Kubernetes cluster.
- name str
A name for the Kubernetes cluster.
- size str
- actual_
node_ floatcount - auto_
scale bool - id str
A unique ID that can be used to identify and reference a Kubernetes cluster.
- labels Dict[str, str]
- max_
nodes float - min_
nodes float - node_
count float - nodes
List[Kubernetes
Cluster Node Pool Node] - List[str]
A list of tag names to be applied to the Kubernetes cluster.
KubernetesClusterNodePoolNode
- Created
At string The date and time when the Kubernetes cluster was created.
- Droplet
Id string - Id string
A unique ID that can be used to identify and reference a Kubernetes cluster.
- Name string
A name for the Kubernetes cluster.
- Status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- Updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.
- Created
At string The date and time when the Kubernetes cluster was created.
- Droplet
Id string - Id string
A unique ID that can be used to identify and reference a Kubernetes cluster.
- Name string
A name for the Kubernetes cluster.
- Status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- Updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.
- created
At string The date and time when the Kubernetes cluster was created.
- droplet
Id string - id string
A unique ID that can be used to identify and reference a Kubernetes cluster.
- name string
A name for the Kubernetes cluster.
- status string
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- updated
At string The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.
- created_
at str The date and time when the Kubernetes cluster was created.
- droplet_
id str - id str
A unique ID that can be used to identify and reference a Kubernetes cluster.
- name str
A name for the Kubernetes cluster.
- status str
A string indicating the current status of the cluster. Potential values include running, provisioning, and errored.
- updated_
at str The date and time when the Kubernetes cluster was last updated. *
kube_config.0- A representation of the Kubernetes cluster’s kubeconfig with the following attributes: -raw_config- The full contents of the Kubernetes cluster’s kubeconfig file. -host- The URL of the API server on the Kubernetes master node. -cluster_ca_certificate- The base64 encoded public certificate for the cluster’s certificate authority. -token- The DigitalOcean API access token used by clients to access the cluster. -client_key- The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -client_certificate- The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster. -expires_at- The date and time when the credentials will expire and need to be regenerated.
Package Details
- Repository
- https://github.com/pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.