I'm trying to set up a new rke2 cluster. We have V...
# rke2
m
I'm trying to set up a new rke2 cluster. We have VMs that will be a part of your cluster. However, every time I run the join command, the node will never leave this state:
Waiting for Node Ref
. The command I run is this:
Copy code
curl -fL <https://rancherdevserver.libraries.psu.edu/system-agent-install.sh> | sudo  sh -s - --server <https://rancherdevserver.libraries.psu.edu> --label '<http://cattle.io/os=linux|cattle.io/os=linux>' --token SOMETOKEN --etcd --controlplane --address PUBLIC IP  --internal-address PRIVATE-IP  --node-name ulkdevctl2
and its provided by the rancher ui admin interface. I am able to ping the rancher server from the node in question.
c
What do the logs on the node say? Check rancher-system-agent and rke2-server logs in journald. If you see nothing there check the cloud-init log.
Also note that you need all roles in the cluster. Make sure that you have a worker node added, or have the worker role on the etcd+CP node.
m
Thank you for your response. I seem to have failed at adding the worker. We separate our control plane from worker nodes and I remember when setting up a cluster before, I could start a control plane without necessarily having all roles applied. I thought this behavior was the same but the moment I added the worker node, things worked. Thank you again