K3s: Deleting node, reinstalling and rejoining fails with node password rejected

Created on 23 Jul 2019  路  2Comments  路  Source: k3s-io/k3s

Steps to reproduce
Create 2 node cluster
Uninstall k3s-agent through uninstall script
delete node on master
install k3s-agent like before

result:
node joining is rejected because of invalid password

I probably need to delete this password somewhere, I however have no idea where.
Any insight in the matter would be greatly appreciated

Most helpful comment

I had this same issue. The file I had to update was on the master node and was /var/lib/rancher/k3s/server/cred/node-passwd. Remove the line with the hostname that is causing issues then I rebooted that agent server.

All 2 comments

found it, the password is stored in: /var/lib/rancher/k3s/server/node-passwd
removing the entry resolves the problem

I had this same issue. The file I had to update was on the master node and was /var/lib/rancher/k3s/server/cred/node-passwd. Remove the line with the hostname that is causing issues then I rebooted that agent server.

Was this page helpful?
0 / 5 - 0 ratings