This message was deleted.
# k3s
a
This message was deleted.
h
i am doing something wrong here
i successfully created the first server node with the config.yaml that has contents of: cluster-init: true token-file: "/etc/rancher/k3s/cluster_token" and then I ran sudo INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_EXEC="server" sh /usr/local/bin/install.sh and my cluster was created
but when i set everything up the same with my joining server node, all i did differently was change the config.yaml of it to: server: "original cluster creators address" token-file: "same thing here as original node" and then ran the sudo INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_EXEC="server" sh /usr/local/bin/install.sh
but my nodes failing to join
h
For reference: https://docs.k3s.io/datastore/ha-embedded?_highlight=high You do have to specify port 6443 of your 1st node:
Copy code
--server https://<ip or hostname of server1>:6443
assuming you are already allowing 6443 thru firewalld
h
oh
i have to specify that in its config.yaml of the first node
oka
h
not on 1st node, but on additional nodes you want to join
you will have to allow 6443 on all your nodes on firewalld
h
right
so i did that
in the joining server config.yaml i just have: server: "https://ip-address:6443" token-file: "path to token file"
👍 1
but for some reason it doesnt join the node
h
contents of your token file matches correct? (on both nodes) from second node (that you are trying to join) you can access port 6443 of your 1st node?
nc -v 1st-node-ip 6443
h
yep
i just added the --config flag to it.. whatevs still kind of strange