This message was deleted.
# rke2
a
This message was deleted.
c
watching
Hi @creamy-pencil-82913, sorry for the direct mantion, we are new on this Rancher world. And I´m seen you giving a lot of feedbacks, then I thought, he may can help us. 🙂 About our problem, is there any configuration to rancher watch the nodes and remove them if they are not healty?
c
This would normally be handled by the cloud provider running in that cluster. Are you deploying to AWS but not using the AWS cloud provider?
c
Hum.. yes. We have this ASG that manages the machine park. And in the "userdata" of the machine we have the script to start the agent and "join" to the cluster. The addition of new nodes works pretty well.... the problem is, what to do with those "ghost" nodes after the ec2 dies.
c
the cloud provider will delete a node if the ec2 instance it is associated with doesn’t exist. that is specifically one of its jobs.
c
humm nice. I will take a look on that! Thanks man, I will keep the thread updated
Update: I did installed this provider and then I figured out that I also need the autoscaler available.
The problem now is.... even with all pieces in place and looking good.... I'm facing now this messages:
Copy code
Failed to get node infos for groups: wrong id: expected format aws:///<zone>/<name>, got <rke2://ip-10-13-21-123And> as far as I could understand... We have to make some custom ProviderID, to attend this "aws" pattern...
And again, I'm back to look for the Rancher setup... Is there any ways to the rancher agent set this "ProviderID" as we need?