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.
19 lines
503 B
HCL
19 lines
503 B
HCL
resource "scaleway_k8s_cluster" "_" {
|
|
name = var.cluster_name
|
|
tags = var.common_tags
|
|
version = var.k8s_version
|
|
cni = var.cni
|
|
}
|
|
|
|
resource "scaleway_k8s_pool" "_" {
|
|
cluster_id = scaleway_k8s_cluster._.id
|
|
name = "scw-x86"
|
|
tags = var.common_tags
|
|
node_type = local.node_type
|
|
size = var.min_nodes_per_pool
|
|
min_size = var.min_nodes_per_pool
|
|
max_size = max(var.min_nodes_per_pool, var.max_nodes_per_pool)
|
|
autoscaling = true
|
|
autohealing = true
|
|
}
|