k3s/pkg/cli/cmds
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
..
agent.go Always use static ports for client load-balancers (#3026) 2021-03-06 02:29:57 -08:00
check-config.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
config.go Update pkg/cli/cmds/config.go 2020-09-01 10:43:28 -07:00
crictl.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
ctr.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
etcd_snapshot.go Etcd Snapshot/Restore to/from S3 Compatible Backends (#2902) 2021-03-03 11:14:12 -07:00
kubectl.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
log.go Revert "Add config file support" 2020-08-29 21:44:07 -07:00
nocluster.go Remove lingering references to dqlite 2020-08-24 17:09:19 -07:00
nostage.go Update disables list when building with no_stage 2020-11-04 13:39:45 -08:00
root.go Add support for both config-file and data-dir at a global level in the self-extracting wrapper for K3s (#2594) 2020-12-16 09:27:57 -08:00
server.go Always use static ports for client load-balancers (#3026) 2021-03-06 02:29:57 -08:00
stage.go Update disables list when building with no_stage 2020-11-04 13:39:45 -08:00