Kubernetes Cluster
Import
Before importing a Kubernetes cluster, the cluster's default node pool must be tagged with the terraform:default-node-pool
tag. The provider will automatically add this tag if the cluster only has a single node pool. Clusters with more than one node pool, however, will require that you manually add the terraform:default-node-pool
tag to the node pool that you intend to be the default node pool. Then the Kubernetes cluster and its default node pool can be imported using the cluster's id
, e.g.
$ pulumi import digitalocean:index/kubernetesCluster:KubernetesCluster mycluster 1b8b2100-0e9f-4e8f-ad78-9eb578c2a0af
Additional node pools must be imported separately as digitalocean_kubernetes_cluster
resources, e.g.
$ pulumi import digitalocean:index/kubernetesCluster:KubernetesCluster mynodepool 9d76f410-9284-4436-9633-4066852442c8
Properties
Use with caution. When set to true, all associated DigitalOcean resources created via the Kubernetes API (load balancers, volumes, and volume snapshots) will be destroyed along with the cluster when it is destroyed. This resource supports customized create timeouts. The default timeout is 30 minutes.
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.)