GetKubernetesCluster
Retrieves information about a DigitalOcean Kubernetes cluster for use in other resources. This data source provides all of the cluster’s properties as configured on your DigitalOcean account. This is useful if the cluster in question is not managed by this provider.
Using GetKubernetesCluster
function getKubernetesCluster(args: GetKubernetesClusterArgs, opts?: InvokeOptions): Promise<GetKubernetesClusterResult>function get_kubernetes_cluster(name=None, tags=None, opts=None)func LookupKubernetesCluster(ctx *Context, args *LookupKubernetesClusterArgs, opts ...InvokeOption) (*LookupKubernetesClusterResult, error)Note: This function is named
LookupKubernetesClusterin the Go SDK.
public static class GetKubernetesCluster {
public static Task<GetKubernetesClusterResult> InvokeAsync(GetKubernetesClusterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of Kubernetes cluster.
- List<string>
A list of tag names to be applied to the Kubernetes cluster.
GetKubernetesCluster Result
The following output properties are available:
- 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. Get Kubernetes Cluster Kube Config> - Name string
- Node
Pools List<Pulumi.Digital Ocean. Outputs. Get Kubernetes Cluster Node Pool> A list of node pools associated with the cluster. Each node pool exports the following attributes: -
id- The unique ID that can be used to identify and reference the node pool. -name- The name of the node pool. -size- The slug identifier for the type of Droplet used as workers in the node pool. -node_count- The number of Droplet instances in the node pool. -actual_node_count- The actual number of nodes in the node pool, which is especially useful when auto-scaling is enabled. -auto_scale- A boolean indicating whether auto-scaling is enabled on the node pool. -min_nodes- If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- A list of tag names applied to the node pool. -labels- A map of key/value pairs applied to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources. -nodes- A list of nodes in the pool. Each node exports the following attributes: +id- A unique ID that can be used to identify and reference the node. +name- The auto-generated name for the node. +status- A string indicating the current status of the individual node. +created_at- The date and time when the node was created. +updated_at- The date and time when the node was last updated.- Region string
The slug identifier for the region where the Kubernetes cluster is located.
- 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.- Version string
The slug identifier for the version of Kubernetes used for the cluster.
- Vpc
Uuid string The ID of the VPC where the Kubernetes cluster is located.
- List<string>
A list of tag names to be applied to the Kubernetes cluster.
- 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 []GetKubernetes Cluster Kube Config - Name string
- Node
Pools []GetKubernetes Cluster Node Pool A list of node pools associated with the cluster. Each node pool exports the following attributes: -
id- The unique ID that can be used to identify and reference the node pool. -name- The name of the node pool. -size- The slug identifier for the type of Droplet used as workers in the node pool. -node_count- The number of Droplet instances in the node pool. -actual_node_count- The actual number of nodes in the node pool, which is especially useful when auto-scaling is enabled. -auto_scale- A boolean indicating whether auto-scaling is enabled on the node pool. -min_nodes- If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- A list of tag names applied to the node pool. -labels- A map of key/value pairs applied to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources. -nodes- A list of nodes in the pool. Each node exports the following attributes: +id- A unique ID that can be used to identify and reference the node. +name- The auto-generated name for the node. +status- A string indicating the current status of the individual node. +created_at- The date and time when the node was created. +updated_at- The date and time when the node was last updated.- Region string
The slug identifier for the region where the Kubernetes cluster is located.
- 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.- Version string
The slug identifier for the version of Kubernetes used for the cluster.
- Vpc
Uuid string The ID of the VPC where the Kubernetes cluster is located.
- []string
A list of tag names to be applied to the Kubernetes cluster.
- 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 GetKubernetes Cluster Kube Config[] - name string
- node
Pools GetKubernetes Cluster Node Pool[] A list of node pools associated with the cluster. Each node pool exports the following attributes: -
id- The unique ID that can be used to identify and reference the node pool. -name- The name of the node pool. -size- The slug identifier for the type of Droplet used as workers in the node pool. -node_count- The number of Droplet instances in the node pool. -actual_node_count- The actual number of nodes in the node pool, which is especially useful when auto-scaling is enabled. -auto_scale- A boolean indicating whether auto-scaling is enabled on the node pool. -min_nodes- If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- A list of tag names applied to the node pool. -labels- A map of key/value pairs applied to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources. -nodes- A list of nodes in the pool. Each node exports the following attributes: +id- A unique ID that can be used to identify and reference the node. +name- The auto-generated name for the node. +status- A string indicating the current status of the individual node. +created_at- The date and time when the node was created. +updated_at- The date and time when the node was last updated.- region string
The slug identifier for the region where the Kubernetes cluster is located.
- 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.- version string
The slug identifier for the version of Kubernetes used for the cluster.
- vpc
Uuid string The ID of the VPC where the Kubernetes cluster is located.
- string[]
A list of tag names to be applied to the Kubernetes cluster.
- 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[GetKubernetes Cluster Kube Config] - name str
- node_
pools List[GetKubernetes Cluster Node Pool] A list of node pools associated with the cluster. Each node pool exports the following attributes: -
id- The unique ID that can be used to identify and reference the node pool. -name- The name of the node pool. -size- The slug identifier for the type of Droplet used as workers in the node pool. -node_count- The number of Droplet instances in the node pool. -actual_node_count- The actual number of nodes in the node pool, which is especially useful when auto-scaling is enabled. -auto_scale- A boolean indicating whether auto-scaling is enabled on the node pool. -min_nodes- If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to. -max_nodes- If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. -tags- A list of tag names applied to the node pool. -labels- A map of key/value pairs applied to nodes in the pool. The labels are exposed in the Kubernetes API as labels in the metadata of the corresponding Node resources. -nodes- A list of nodes in the pool. Each node exports the following attributes: +id- A unique ID that can be used to identify and reference the node. +name- The auto-generated name for the node. +status- A string indicating the current status of the individual node. +created_at- The date and time when the node was created. +updated_at- The date and time when the node was last updated.- region str
The slug identifier for the region where the Kubernetes cluster is located.
- 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.- version str
The slug identifier for the version of Kubernetes used for the cluster.
- vpc_
uuid str The ID of the VPC where the Kubernetes cluster is located.
- List[str]
A list of tag names to be applied to the Kubernetes cluster.
Supporting Types
GetKubernetesClusterKubeConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetKubernetesClusterNodePool
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Actual
Node intCount - Auto
Scale bool - Id string
The unique ID that can be used to identify and reference a Kubernetes cluster.
- Labels Dictionary<string, string>
- Max
Nodes int - Min
Nodes int - Name string
The name of Kubernetes cluster.
- Node
Count int - Nodes
List<Pulumi.
Digital Ocean. Inputs. Get Kubernetes Cluster Node Pool Node Args> - Size string
- List<string>
A list of tag names to be applied to the Kubernetes cluster.
- Actual
Node intCount - Auto
Scale bool - Id string
The unique ID that can be used to identify and reference a Kubernetes cluster.
- Labels map[string]string
- Max
Nodes int - Min
Nodes int - Name string
The name of Kubernetes cluster.
- Node
Count int - Nodes
[]Get
Kubernetes Cluster Node Pool Node - Size string
- []string
A list of tag names to be applied to the Kubernetes cluster.
- actual
Node numberCount - auto
Scale boolean - id string
The unique ID that can be used to identify and reference a Kubernetes cluster.
- labels {[key: string]: string}
- max
Nodes number - min
Nodes number - name string
The name of Kubernetes cluster.
- node
Count number - nodes
Get
Kubernetes Cluster Node Pool Node[] - size string
- string[]
A list of tag names to be applied to the Kubernetes cluster.
- actual_
node_ floatcount - auto_
scale bool - id str
The unique ID that can be used to identify and reference a Kubernetes cluster.
- labels Dict[str, str]
- max_
nodes float - min_
nodes float - name str
The name of Kubernetes cluster.
- node_
count float - nodes
List[Get
Kubernetes Cluster Node Pool Node] - size str
- List[str]
A list of tag names to be applied to the Kubernetes cluster.
GetKubernetesClusterNodePoolNode
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Created
At string The date and time when the Kubernetes cluster was created.
- Droplet
Id string - Id string
The unique ID that can be used to identify and reference a Kubernetes cluster.
- Name string
The name of 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
The unique ID that can be used to identify and reference a Kubernetes cluster.
- Name string
The name of 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
The unique ID that can be used to identify and reference a Kubernetes cluster.
- name string
The name of 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
The unique ID that can be used to identify and reference a Kubernetes cluster.
- name str
The name of 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.