refactor(terraform): rename server to cv-control-plane, fix image and server type defaults

This commit is contained in:
Noel Sabia committed 2026-10-27 14:53:27 +01:00
1 parent 8e0c1a8796
commit c2d356870a
8 files changed
+23 -30

No files matched your search

+2 -10
View File
@@ -1,10 +1,3 @@
# Server layer: creates server0 at Hetzner and installs the SSH key at boot.
# Packages, swap, containerd, kubeadm, addons and Caddy follow in later steps
# over SSH; see plan.md.
#
# Terraform does not manage anything inside the cluster beyond the bootstrap
# (namespace cv, quota, addons). Workloads belong to kustomize.
provider "hcloud" {}
resource "hcloud_ssh_key" "cv_infra" {
@@ -12,8 +5,8 @@ resource "hcloud_ssh_key" "cv_infra" {
public_key = file(pathexpand(var.ssh_public_key_path))
}
resource "hcloud_server" "server0" {
name = "server0"
resource "hcloud_server" "control_plane" {
name = "cv-control-plane"
server_type = var.server_type
image = var.server_image
location = var.server_location
@@ -22,7 +15,6 @@ resource "hcloud_server" "server0" {
public_net {
ipv4_enabled = true
# No AAAA record is managed, so do not pay for an unused IPv6.
ipv6_enabled = false
}
}