-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to setup cluster with 1 server and 1 agent #4839
Comments
The message you're getting: |
No, they have different hostnames |
Ok; in that case can you take a look at https://rancher.com/docs/k3s/latest/en/architecture/#how-agent-node-registration-works and see if you somehow have a node and secret for the agent node, perhaps left over from a previous join attempt? |
That was it, thank you! I don't know how but I never got to read that part of the documentation.
|
That helps me, thank you! |
thank you. Rke2 has many of unknown error :( |
Environmental Info:
K3s Version: v1.22.5+k3s1
Node(s) CPU architecture, OS, and Version:
Linux ocvm-a1-1 5.11.0-1022-oracle #23~20.04.1-Ubuntu SMP Fri Nov 12 15:45:47 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
Cluster Configuration:
1 server, 1 agent. Both have the same hardware and software. They also have no limitations in connectivity between them (all ports open in the network). They have access to the internet, but only ports 80 and 443 are open to it.
Describe the bug:
I am trying to setup a cluster with 1 server / master node and 1 worker node. When I setup the agent in the worker VM it never successfully joins the cluster and both VMs log an error regarding this agent configuration process, please see the logs below.
Steps To Reproduce:
curl -sfL https://get.k3s.io | sh -
curl -sfL https://get.k3s.io | K3S_URL=https://<ip of master node>:6443 K3S_TOKEN="<content of node-token in the master>" sh -
Expected behavior:
I expected the worker node to join the cluster and be shown in
kubectl get nodes
.Actual behavior:
Both nodes seem to exchange some information, but the worker node never joins the cluster, and both have log entries regarding this failure.
Additional context / logs:
Output of
journalctl -u k3s -f
on the master node:Output of the agent installation:
Output of
journalctl -u k3s-agent.service
on the worker node (the last line is repeated infinitely):Backporting
The text was updated successfully, but these errors were encountered: