techno-tim / k3s-ansible

The easiest way to bootstrap a self-hosted High Availability Kubernetes cluster. A fully automated HA k3s etcd install with kube-vip, MetalLB, and more. Build. Destroy. Repeat.
https://technotim.live/posts/k3s-etcd-ansible/
Apache License 2.0
2.41k stars 1.05k forks source link

Fix dual-stack clusters with multiple master nodes #237

Closed sleiner closed 1 year ago

sleiner commented 1 year ago

Proposed Changes

In its current form, the playbook cannot manage dual-stack multi-master clusters. The reason for this is every master other than the first get a URL parameter which includes k3s_node_ip of the first master verbatim. Since k3s_node_ip contains multiple, comma-separated IP addresses in dual-stack clusters, we need to extract a single IP address here.

Checklist

timothystewart6 commented 1 year ago

Thank you!