Skip to main content

DigitalOcean Kubernetes - Terraform

Requirements

NameVersion
terraform>= 1.9
digitalocean~> 2.40
tls~> 4.0

Providers

NameVersion
digitalocean~> 2.40

Modules

No modules.

Resources

NameType
digitalocean_kubernetes_cluster.thisresource
digitalocean_kubernetes_node_pool.thisresource

Inputs

NameDescriptionTypeDefaultRequired
auto_upgradeWhether to enable automatic upgrades for the clusterbooltrueno
cluster_tagsA list of tags to apply to the clusterlist(string)[]no
destroy_all_associated_resourcesWhether to destroy all associated resources when the cluster is destroyedboolfalseno
haWhether to enable high availability for the clusterboolfalseno
kubernetes_versionThe version of Kubernetes to use for the clusterstringn/ayes
maintenance_policy_dayThe day of the week to perform maintenance on the clusterstring"any"no
maintenance_policy_start_timeThe time of day to start maintenance on the clusterstring"any"no
nameThe name of the Kubernetes clusterstringn/ayes
node_pool_name_prefixThe prefix to use for the names of the node poolsstring""no
node_pool_name_separatorThe separator to use between the prefix and the name of the node poolsstring"-"no
node_poolsA list of node pools to create for the cluster
list(object({
name = string
size = string
node_count = optional(number)
auto_scale = optional(bool)
min_nodes = optional(number)
max_nodes = optional(number)
tags = list(string)
labels = map(string)
taints = list(object({
key = string
value = string
effect = string
}))
}))
[]no
regionThe region where the Kubernetes cluster will be createdstringn/ayes
registry_integrationWhether to enable the container registry integration for the clusterboolfalseno
surge_upgradeWhether to enable surge upgrades for the clusterboolfalseno
vpc_uuidThe UUID of the VPC where the Kubernetes cluster will be createdstringn/ayes

Outputs

NameDescription
cluster_endpointThe endpoint of the Kubernetes cluster
cluster_idThe ID of the Kubernetes cluster
cluster_kube_configThe kubeconfig for the Kubernetes cluster
cluster_urnThe URN of the Kubernetes cluster
debugn/a