-
Run this command:
$ kubectl edit statefulsets -n tdplatform platform-consul
- Search for the keyword "replicas".
- Set the value of replicas to 0.
- Save the file with :wq.
-
Check the status of the consul pods:
$ kubectl get pods n tdplatform | grep consul
-
After all consul pods terminate completely, run this command:
$ kubectl edit statefulsets -n tdplatform platform-consul
- Search for the keyword "replicas".
- Set the value of replicas to 3.
- Save the file with :wq.