KubernetesClusterArgs

data class KubernetesClusterArgs(val autoUpgrade: Output<Boolean>? = null, val destroyAllAssociatedResources: Output<Boolean>? = null, val ha: Output<Boolean>? = null, val maintenancePolicy: Output<KubernetesClusterMaintenancePolicyArgs>? = null, val name: Output<String>? = null, val nodePool: Output<KubernetesClusterNodePoolArgs>? = null, val region: Output<Either<String, Region>>? = null, val registryIntegration: Output<Boolean>? = null, val surgeUpgrade: Output<Boolean>? = null, val tags: Output<List<String>>? = null, val version: Output<String>? = null, val vpcUuid: Output<String>? = null) : ConvertibleToJava<KubernetesClusterArgs>

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

Link copied to clipboard
fun KubernetesClusterArgs(autoUpgrade: Output<Boolean>? = null, destroyAllAssociatedResources: Output<Boolean>? = null, ha: Output<Boolean>? = null, maintenancePolicy: Output<KubernetesClusterMaintenancePolicyArgs>? = null, name: Output<String>? = null, nodePool: Output<KubernetesClusterNodePoolArgs>? = null, region: Output<Either<String, Region>>? = null, registryIntegration: Output<Boolean>? = null, surgeUpgrade: Output<Boolean>? = null, tags: Output<List<String>>? = null, version: Output<String>? = null, vpcUuid: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): KubernetesClusterArgs

Properties

Link copied to clipboard
val autoUpgrade: Output<Boolean>? = null

A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.

Link copied to clipboard

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.

Link copied to clipboard
val ha: Output<Boolean>? = null

Enable/disable the high availability control plane for a cluster. High availability can only be set when creating a cluster. Any update will create a new cluster. Default: false

Link copied to clipboard

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.

Link copied to clipboard
val name: Output<String>? = null

A name for the node pool.

Link copied to clipboard

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:

Link copied to clipboard
val region: Output<Either<String, Region>>? = null

The slug identifier for the region where the Kubernetes cluster will be created.

Link copied to clipboard
val registryIntegration: Output<Boolean>? = null

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

Link copied to clipboard
val surgeUpgrade: Output<Boolean>? = null

Enable/disable surge upgrades for a cluster. Default: false

Link copied to clipboard
val tags: Output<List<String>>? = null

A list of tag names to be applied to the Kubernetes cluster.

Link copied to clipboard
val version: Output<String>? = null

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.)

Link copied to clipboard
val vpcUuid: Output<String>? = null

The ID of the VPC where the Kubernetes cluster will be located.