Cannot add new agents?

I have a control plane and a worker running fine at the moment.

I decided to add another agent from another hypervisor. After doing so I realized that the IP address of the agent was not set correctly.

I drained and deleted the node:
kubectl delete node k3os_agent2

Delete went fine.
However, now when I try to reinstall i see:
node “k3os_agent2” not found in the k3s-service.log

i have tried removing this and renaming the host and doing another sudo k3os install from the live disk… same issue.

Upon googling I also deleted the line for k3os_agent2 in:
/var/lib/rancher/k3s/server/cred/node-passwd
to be sure.

However nothing is working. No matter what I try to do, I cannot get another agent working. Any ideas?

update
I noticed on the master node I am seeing:
Interestingly enough, on the master node I see:
http: TLS handshake error from 172.20.30.23:60716: remote error: tls: bad certificate

Not sure why

Solved!
I had an “_” in the hostname name. K3s did not like that.