Closed larssb closed 1 month ago
fixed in https://github.com/karmab/kcli/commit/ff1d2fda24258261d8872b57e3ccee7ab590a331 to revert to the behaviour prior to https://github.com/karmab/kcli/commit/cf3b0f89716498f8b95b1494eba5e8549cac229f :)
Aaaah wait. The changes in https://github.com/karmab/kcli/commit/cf3b0f89716498f8b95b1494eba5e8549cac229f where necessary for other reasons!
I don't think we should revert this. Now this:
# The logic below is to achieve the following
# - for cloud providers. If the API is internal and
# this is a HA cluster. Use the IP of the API load-balancer
# - for cloud providers. If the API is NOT internal.
# use the external IP. This in both the HA and single ctlplane case
# - The last to branches is for on-prem. E.g. vSphere/VMWare
# in HA or single ctlplane scenarios.
Won't work anymore. Sad ;-(
I alleviated this for join.sh by declaring the ctlplane-0 nodes ip as the api_ip. I guess that could work. However, as I understand the use of api_ip
in KCLI
it's mostly to indicate the need for what IP to use as the floating IP/VIP to front the control-plane nodes in a HA setup.
See:
Where
first_ip
because of the same issue/s as in #704 will have no value. Therefore one will see:thrown by the
k3s-agent ( worker )
service. Can be seen by executing:journalctl -u k3s-agent.service -f
And
workers
will never be able to join a single control-plane nodeK3s
cluster.