How to add the Node back to the cluster when deleted manually without deleting the data?

  1. Having cluster of 6 nodes (3 master, 3 slaves)
  2. 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
  3. 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

Redis How to add the Node back to the cluster when deleted manually?

Even trying to add after clean up but not able to perform the operation Redis How to add the Node back to the cluster when deleted manually?

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.