refactor: move to K8s state and move machines to Helsinki
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f899d3f415
commit
73da8be447
4 changed files with 17 additions and 32 deletions
|
@ -104,13 +104,11 @@ data "ct_config" "machine-ignitions" {
|
|||
}
|
||||
)
|
||||
snippets = [
|
||||
data.template_file.core_user.rendered
|
||||
]
|
||||
}
|
||||
|
||||
data "template_file" "core_user" {
|
||||
template = file("${path.module}/configs/core-user.yaml.tmpl")
|
||||
vars = {
|
||||
templatefile(
|
||||
"${path.module}/configs/core-user.yaml.tmpl",
|
||||
{
|
||||
ssh_keys = jsonencode(concat(var.ssh_keys, [tls_private_key.provisioning.public_key_openssh]))
|
||||
}
|
||||
)
|
||||
]
|
||||
}
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
terraform {
|
||||
required_version = ">= 0.14"
|
||||
|
||||
cloud {
|
||||
organization = "pkurfer"
|
||||
|
||||
workspaces {
|
||||
name = "hcloud-infra"
|
||||
}
|
||||
backend "kubernetes" {
|
||||
secret_suffix = "state"
|
||||
config_path = "~/.kube/hetzner.yaml"
|
||||
namespace = "infrastructure"
|
||||
}
|
||||
|
||||
required_providers {
|
||||
|
@ -19,10 +17,7 @@ terraform {
|
|||
source = "poseidon/ct"
|
||||
version = "0.11.0"
|
||||
}
|
||||
template = {
|
||||
source = "hashicorp/template"
|
||||
version = "~> 2.2.0"
|
||||
}
|
||||
|
||||
null = {
|
||||
source = "hashicorp/null"
|
||||
version = "~> 3.2.1"
|
||||
|
|
|
@ -7,14 +7,6 @@ k3os_workers = {
|
|||
location = "hel1"
|
||||
}
|
||||
|
||||
"worker2-gen4" = {
|
||||
backups = false
|
||||
node_type = "worker"
|
||||
server_type = "cax21"
|
||||
private_ip = "172.23.2.21"
|
||||
location = "fsn1"
|
||||
}
|
||||
|
||||
"w2-cax21-hel1-gen5" = {
|
||||
backups = false
|
||||
node_type = "worker"
|
||||
|
@ -23,12 +15,12 @@ k3os_workers = {
|
|||
location = "hel1"
|
||||
}
|
||||
|
||||
"worker3-gen4" = {
|
||||
"w3-cax21-hel1-gen5" = {
|
||||
backups = false
|
||||
node_type = "worker"
|
||||
server_type = "cax21"
|
||||
private_ip = "172.23.2.22"
|
||||
location = "fsn1"
|
||||
private_ip = "172.23.2.25"
|
||||
location = "hel1"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue