Turbine - Restarting Services in Swimlane Using Kubernetes Rollout Restart Commands
6 min
for restarting different services in swimlane, use the kubernetes commands as listed below this guide will demonstrate how to restart the following services turbine engine turbine api turbine agent swimlane api swimlane tasks coredns (in case your dns server has been modified and playbooks doesn't get these dns modifications) rabbitmq server (sts) step by step instructions restarting deployments the first five services (turbine engine, turbine api, turbine agent, swimlane api, and swimlane tasks) are managed as kubernetes deployments to restart these services, follow these steps list all deployments in the namespace first, list all the deployments in the swimlane namespace to ensure they are correctly mapped kubectl get deployments a ### this command will list all the deployments in the cluster kubectl get deployments n \<namespace> ### this command will give only the deployments that are under in the specific namespace the above command will display the following output restart each deployment restart each deployment using the following commands, replacing \<namespace> with the actual namespace (usually swimlane) kubectl rollout restart deployment turbine engine n \<namespace> kubectl rollout restart deployment turbine api n \<namespace> kubectl rollout restart deployment turbine agent n \<namespace> kubectl rollout restart deployment swimlane api n \<namespace> kubectl rollout restart deployment swimlane tasks n \<namespace> kubectl rollout restart deployment coredns n \<namespace> restarting statefulsets the rabbitmq server is managed as a kubernetes statefulset to restart the rabbitmq server pods, follow the steps below restart the statefulset restart the statefulset using the following command, replacing\<namespace>with the actual namespace (typicallyswimlane) kubectl get sts a # will give the list of sts kubectl get sts n \<namespace> # will list the sts under the particular namespace for restarting the sts use the below command kubectl rollout restart sts rabbitmq server n \<namespace> by following these commands, you will restart the specified services in the swimlane environment this ensures that all pods associated with these deployments and statefulsets are restarted, this would help us to apply updates and recover from any issues