Files
k3s/pkg
Malte Starostik 389cd740c8 Fix URL pruning when joining an etcd member
* Fix URL pruning when joining an etcd member

Problem:
Existing member clientURLs were checked if they contain the joining
node's IP. In some edge cases this would prune valid URLs when the
joining IP is a substring match of the only existing member's IP.
Because of this, it was impossible to e.g. join 10.0.0.2 to an existing
node that has an IP of 10.0.0.2X or 10.0.0.2XX:

level=fatal msg="starting kubernetes: preparing server: start managed database:
joining etcd cluster: etcdclient: no available endpoints"

Solution:
Fixed by properly parsing the URLs and comparing the IPs for equality
instead of substring match.

Signed-off-by: Malte Starostik <info@stellaware.de>
(cherry picked from commit b23955e835)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2021-08-13 11:50:05 -07:00
..
2019-10-30 19:08:26 -07:00
2020-08-28 17:18:34 -07:00
2021-07-19 22:41:50 +02:00
2021-07-19 22:41:50 +02:00
2021-07-21 23:00:23 +02:00
2019-01-11 21:52:30 -07:00
2019-06-30 09:30:25 -07:00
2021-07-19 22:41:50 +02:00
2021-08-05 09:36:13 -07:00
2020-10-28 16:40:15 -07:00
2020-08-28 17:18:31 -07:00
2021-07-19 22:41:50 +02:00
2021-08-05 09:36:13 -07:00
2019-01-11 21:52:30 -07:00
2020-02-23 00:48:26 -08:00
2020-07-09 11:20:06 -07:00