node-pool
devdynamicio/node-pool/digitalocean
Terraform module to create an node pools for Kubernetes cluster in DigitalOcean πΊπ¦
Digitalocean Kubernetes node pools Terraform module Terraform Module for create node pools in DigitalOcean Kubernetes service.  Requirements This module requires Terraform version 0.13.0 or newer. Examples ``hcl module "kubernetes" { source = "../../" cluster_name = "k8s-example" region = "fra1" node_count = 1 node_size = "s-2vcpu-4gb" k8s_version_prefix = "1.21." } module "kubernetes_node_pool" { source = "../../" auto_scale = true cluster_id = module.kubernetes.id labels = { env = "dev" service = "kubernetes" made-by = "terraform" } max_nodes = 2 min_nodes = 1 name = "dev" node_count = 1 size = "s-1vcpu-2gb" tags = ["kubernetes", "nodes"] taint = [{ key = "workloadKind" value = "dev" effect = "NoSchedul
| Name | Type | Description | Default |
|---|---|---|---|
| labels | map(string) | A map of key/value pairs to apply to nodes in the pool. The labels are exposed i | required |
| max_nodes | number | If auto-scaling is enabled, this represents the maximum number of nodes that the | required |
| min_nodes | number | If auto-scaling is enabled, this represents the minimum number of nodes that the | required |
| tags | set(string) | A list of tag names to be applied to the Kubernetes cluster. | required |
| cluster_id | string | The ID of the Kubernetes cluster to which the node pool is associated. | required |
| name | string | A name for the node pool. | required |
| node_count | number | The number of Droplet instances in the node pool. If auto-scaling is enabled, th | required |
| size | string | The slug identifier for the type of Droplet to be used as workers in the node po | required |
| auto_scale | bool | Enable auto-scaling of the number of nodes in the node pool within the given min | false |
| taint | set(object( { effect | A list of taints applied to all nodes in the pool. | [] |
id β A unique ID that can be used to identify and reference the node pool.nodes β A list of nodes in the pool. Each node exports the following attributes:actual_node_count β A computed field representing the actual number of nodes in the node pool, which is especially usefu