mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 21:11:02 +00:00
feat: install new k3s cluster
This commit is contained in:
parent
7d25467fb4
commit
41d120b277
11 changed files with 418 additions and 36 deletions
23
main.tf
23
main.tf
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue