Fix HA cluster join via Load Balancer private IP
Some checks failed
Deploy Cluster / Terraform (push) Successful in 36s
Deploy Cluster / Ansible (push) Failing after 3m5s

Changes:
- Use LB private IP (10.0.1.5) instead of public IP for cluster joins
- Add LB private IP to k3s TLS SANs on primary control plane
- This allows secondary CPs and workers to verify certificates when joining via LB

Fixes x509 certificate validation error when joining via LB public IP.
This commit is contained in:
2026-03-23 02:56:41 +00:00
parent 4965017b86
commit 952a80a742
3 changed files with 4 additions and 2 deletions

View File

@@ -65,6 +65,6 @@ output "kubeconfig_command" {
}
output "kube_api_lb_ip" {
description = "Load Balancer IP for Kubernetes API"
value = hcloud_load_balancer.kube_api.ipv4
description = "Load Balancer private IP for Kubernetes API (used for cluster joins)"
value = hcloud_load_balancer_network.kube_api.ip
}