mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-20 21:39:22 +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.
18 lines
363 B
HCL
18 lines
363 B
HCL
resource "linode_lke_cluster" "_" {
|
|
label = var.cluster_name
|
|
tags = var.common_tags
|
|
region = var.region
|
|
k8s_version = var.k8s_version
|
|
|
|
pool {
|
|
type = local.node_type
|
|
count = var.min_nodes_per_pool
|
|
autoscaler {
|
|
min = var.min_nodes_per_pool
|
|
max = max(var.min_nodes_per_pool, var.max_nodes_per_pool)
|
|
}
|
|
}
|
|
|
|
}
|
|
|