k3s-io / k3s

Lightweight Kubernetes
https://k3s.io
Apache License 2.0
27.71k stars 2.32k forks source link

etcd support to listen on public IPs #8398

Closed batulziiy closed 1 year ago

batulziiy commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, I found that k3s doesn't support etcd to listen on public IPs. When I try to join a new k3s node (a node reside on the cloud) to the existing on-premise cluster through netmaker VPN, a new node tries to connect to the private IP in order to join etcd cluster. ETCD itself has an option to listen on multiple ports, but k3s doesn't support '--listen-client-urls=https://ip:port' as an etcd-arg.

Describe the solution you'd like It would be cool if you add support to ETCD listen on public IPs. For instance, we can add more IPs to listen, by adding --etcd-arg as below. --etcd-arg '--listen-client-urls=https://<loopback-ip>:2379,https://<private-ip>:2379,https://<public-ip>:2379'

Describe alternatives you've considered The goal of this feature request is to make k3s able to add new cloud nodes to the existing on-premise cluster via VPN.

Additional context

brandond commented 1 year ago

This has been proposed and decided against, you can see the discussion on the design proposal at https://github.com/k3s-io/k3s/pull/8001