kube-hetzner / terraform-hcloud-kube-hetzner

Optimized and Maintenance-free Kubernetes on Hetzner Cloud in one command!
MIT License
2.24k stars 345 forks source link

[Feature Request]: Make kubeconfig_server_address configurable #1390

Closed kranich closed 2 months ago

kranich commented 3 months ago

Description

Making kubeconfig_server_address configurable would be helpful in a setup without a control plane loadbalancer but with a common hostname pointing to the IP addresses of all control plane nodes, as described here.

When using the IP address of the first control plane node as kubeconfig_server_address, as currently implemented, the cluster cannot be accessed using that kubeconfig in case the first node is down. However, the cluster would still be accessible if the kubeconfig contained the hostname pointing to the IP addresses of all control plane nodes.

mysticaltech commented 3 months ago

@kranich That's a good idea, we the control-plane LB actually does that, but this would be simpler and cheaper. PR welcome!