control restart of kubernetes deployment code example
Example 1: kubectl restart deployment
kubectl rollout restart deployment yourDeploymentName
Example 2: rolling restart kubernetes gke
kubectl rollout restart deployment your_deployment_name
kubectl rollout restart deployment yourDeploymentName
kubectl rollout restart deployment your_deployment_name