feat(terraform): add per-node Cloudflare Tunnel cert SANs to controlplane certSANs — remote talosctl/kubectl over tunnel pass TLS verification

Adds optional cloudflare_talos_sans (machine.certSANs, talos API :50000) and
cloudflare_apiserver_sans (cluster.apiServer.certSANs, kube-apiserver :6443) per
control-plane node. cp-1 gets cp1.homelab + cp1-talos.homelab; cp-2/cp-3 get
their cpN-talos.homelab. Values set in gitignored tfvars.
This commit is contained in:
Story Crater Bot
2026-08-18 15:08:02 -07:00
parent 2b89981c28
commit 97330d780c
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -130,6 +130,10 @@ variable "controlplane_configs" {
}))
zone = string
allow_scheduling = bool
# Extra cert SANs for this node — e.g. Cloudflare Tunnel public hostnames so
# remote talosctl/kubectl over the tunnel pass TLS verification.
cloudflare_talos_sans = optional(list(string), [])
cloudflare_apiserver_sans = optional(list(string), [])
}))
description = "Control plane machine configurations, keyed by node"
}