How to add the Node back to the cluster when deleted manually without deleting the data?
- Having cluster of 6 nodes (3 master, 3 slaves)
- Delete the one of the slave from cluster kubectl exec -it redis-cluster-redis-cluster-statefulset-0 -- redis-cli --cluster del-node 10.233.101.9:6379 165004f7c37e5efe94522ae1d4c8194ebe5d86c5
- Try to add the node back to cluster kubectl exec -it redis-cluster-redis-cluster-statefulset-0 -- redis-cli --cluster add-node 10.233.101.9:6379 10.233.100.9:6379 --cluster-slave --cluster-master-id 21afd0d372e3b404d103cf56789ea3a3f72a8c8a
Error
Even trying to add after clean up but not able to perform the operation
Comment From: madolson
The best way is probably to use CLUSTER RESET HARD. Which will make the node forget it's status, and will flush data.