feat: install new k3s cluster

This commit is contained in:
Julian Tölle 2021-12-04 22:38:20 +01:00
parent 7d25467fb4
commit 41d120b277
11 changed files with 418 additions and 36 deletions

23
main.tf
View file

@ -2,7 +2,7 @@ locals {
cluster_name = "home-cloud"
}
module k3s_cluster {
module "k3s_cluster" {
source = "./k3s_cluster"
name = local.cluster_name
@ -21,3 +21,24 @@ module k3s_cluster {
hcloud = hcloud
}
}
module "k3s_cluster_v2" {
source = "./k3s_cluster_v2"
name = local.cluster_name
server_image = "ubuntu-20.04"
server_location = "nbg1"
control_server_type = "cx21"
compute_server_type = "cpx31"
load_balancer_type = "lb11"
install_k3s_version = "v1.22.4+k3s1"
control_count = 1
compute_count = 1
domain = "c2.apricote.de"
ssh_key = file("~/.ssh/id_rsa.pub")
hcloud_ccm_token = var.hcloud_ccm_token
providers = {
hcloud = hcloud
}
}