Kubernetes Cluster Args
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
Constructors
Properties
A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
Block containing options for cluster auto-scaling.
The range of IP addresses in the overlay network of the Kubernetes cluster. For more information, see here.
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.
The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry.
A block representing the cluster's maintenance window. Updates will be applied within this window. If not specified, a default maintenance window will be chosen. auto_upgrade
must be set to true
for this to have an effect.
A block representing the cluster's default node pool. Additional node pools may be added to the cluster using the digitalocean.KubernetesNodePool
resource. The following arguments may be specified:
Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account. Default: false
Block containing options for the routing-agent component. If not specified, the routing-agent component will not be installed in the cluster.
The range of assignable IP addresses for services running in the Kubernetes cluster. For more information, see here.
Enable/disable surge upgrades for a cluster. Default: true
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.)