k3s/pkg/agent
Brad Davidson 7cdfaad6ce
Always use static ports for client load-balancers (#3026)
* Always use static ports for the load-balancers

This fixes an issue where RKE2 kube-proxy daemonset pods were failing to
communicate with the apiserver when RKE2 was restarted because the
load-balancer used a different port every time it started up.

This also changes the apiserver load-balancer port to be 1 below the
supervisor port instead of 1 above it. This makes the apiserver port
consistent at 6443 across servers and agents on RKE2.

Additional fixes below were required to successfully test and use this change
on etcd-only nodes.

* Actually add lb-server-port flag to CLI
* Fix nil pointer when starting server with --disable-etcd but no --server
* Don't try to use full URI as initial load-balancer endpoint
* Fix etcd load-balancer pool updates
* Update dynamiclistener to fix cert updates on etcd-only nodes
* Handle recursive initial server URL in load balancer
* Don't run the deploy controller on etcd-only nodes
2021-03-06 02:29:57 -08:00
..
config Always use static ports for client load-balancers (#3026) 2021-03-06 02:29:57 -08:00
containerd Limit zstd decoder memory 2021-02-17 11:48:03 -08:00
flannel Initial Logging Output Update (#2246) 2020-09-21 09:56:03 -07:00
loadbalancer Always use static ports for client load-balancers (#3026) 2021-03-06 02:29:57 -08:00
netpol Replace options.KubeRouterConfig with config.Node and remove metrics/waitgroup stuff 2021-02-03 10:41:51 -08:00
proxy Always use static ports for client load-balancers (#3026) 2021-03-06 02:29:57 -08:00
syssetup Add iptable_nat to modprobe list 2020-10-27 14:22:14 -04:00
templates Disable containerd experimental snapshot labels 2020-11-05 15:51:10 -08:00
tunnel Add disable flags for control components (#2900) 2021-02-12 17:35:57 +02:00
util Add support for retagging images on load from tarball 2021-02-17 11:48:03 -08:00
run.go Always use static ports for client load-balancers (#3026) 2021-03-06 02:29:57 -08:00