I have a consul server node which I now want to make a consul client node. I have tried the following to make it a client node but it doesn't seem to work.
On the node I want to convert I run the 'consul leave' command and this seems to work as all nodes show the node in the leave state when I run the 'consul members' command. I then remove the consul directory from the node and start consul on the node in client mode and do a 'consul join' command to one of the other servers in the cluster. Again this works and when I run the 'consul members' command on each node it shows the node as a client. However, when I look in the consul log on each of the servers I see an EventMemberLeave message saying the node has left and on the cluster leader I see the message saying node is deregistered, but it is still trying to contact the node as if it were a server and also the peers.json file on each of the server nodes still has the node as an entry. This is causing problems when the node is stopped or restarted as the node is still being treated as part of the server quorum.
Any suggestions on how this can be achieved?