Closed yannicschroeer closed 9 months ago
What host is 10.255.0.101
? The message indicates that the node you're running these commands on is configured to join existing K3s cluster that has that node as a server. If this is the first server in the cluster, you should be starting it without the address of an existing server to join in the config.
If you're going to use kube-hetzner
then please refer to their docs; if you're going to try to do this by hand then look at https://docs.k3s.io/quick-start
What host is
10.255.0.101
? The message indicates that the node you're running these commands on is configured to join existing K3s cluster that has that node as a server. If this is the first server in the cluster, you should be starting it without the address of an existing server to join in the config.If you're going to use
kube-hetzner
then please refer to their docs; if you're going to try to do this by hand then look at https://docs.k3s.io/quick-start
Thats a good hint. 10.255.0.101
is also a new node. This is a completely new cluster, there is no cluster to join all the nodes are cross-referencing each other. I had a cluster up and running before, its more likely to be a kube-hetzner
or terraform
state issue then.
I will update this issue as soon as I find a solution - for future reference. I will most likely not bother you anymore. Thank you.
Positive. It was a terraform state issue. Apparently there were some weird things going on in the state even though I destroyed terraform destroy
the resources. I had to delete the state (Remotely stored in S3 in my case) in order for it to work as expected.
Thanks for the hint again.
Environmental Info:
k3s version v1.28.6+k3s1 (39a00015) go version go1.20.13
Node(s) CPU architecture, OS, and Version:
openSUSE MicroOS , Linux 6.7.2-1-default
uname -a Linux k3s-control-plane-nbg1-lso 6.7.2-1-default #1 SMP PREEMPT_DYNAMIC Fri Jan 26 11:01:28 UTC 2024 (a52bf76) x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration: 2 servers, 3 agents
Describe the bug:
I'm having issues spinning up a K3s cluster using
kube-hetzner
I also opened an Issue in their repository (https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/issues/1201), as I am not certain, what the root cause is. After a fresh installation the nodes are unable to start/connect, as the ca certs are not exposed. Starting the server viaresults in
curling the cacerts endpoint does not work.
The node is available in the network.
ping 10.255.0.101 -c 4
lsof -i
shows that there are no k3s-related services running at all. The same issue comes up on all nodes, which is of course why the ca cert endpoints are not exposed anywhere. I am unaware of, if there are missing steps, as I am not able to backtrack the exact steps terraform/kube-hetzner does here.Steps To Reproduce:
Create a MicroOS Snapshot
kube.tf
Apply it.
Expected behavior:
The k3s service starts and the vm exposes its ca certs to the other nodes on
:6443
.Actual behavior:
The creation will timeout after ~10 minutes because the temporary terraform script runs into a timeout
/tmp/terraform_*.sh
Additional context / logs:
journalctl -xeu k3s.service
/usr/local/bin/k3s server
Installing k3s again on a node does not work either:
curl -sfL https://get.k3s.io 6 | INSTALL_K3S_VERSION=v1.28.6+k3s1 sh -s server