mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-21 05:49:40 +00:00
This is a new provisioning mechanism. Right now, it can provision clusters on: - Digital Ocean - Linode - Oracle Cloud - Scaleway Others should be relatively straightforward to add. Check the README in the prepare-tf subdirectory for details.
17 lines
407 B
HCL
17 lines
407 B
HCL
resource "digitalocean_kubernetes_cluster" "_" {
|
|
name = var.cluster_name
|
|
tags = local.common_tags
|
|
region = var.region
|
|
version = var.k8s_version
|
|
|
|
node_pool {
|
|
name = "dok-x86"
|
|
tags = local.common_tags
|
|
size = local.node_type
|
|
auto_scale = true
|
|
min_nodes = var.min_nodes_per_pool
|
|
max_nodes = max(var.min_nodes_per_pool, var.max_nodes_per_pool)
|
|
}
|
|
|
|
}
|