Back
I don't think Kubernetes has any such commands to stop a pod temporarily.
I have an alternate approach in mind that might help you solve your problem
so basically what you need to do is change the pod selector in service definition that will allow you to manipulate traffic for the time being and when your temporary task is done you can switch back the selector and it will function normally. This is a simple trick I found during Kubernetes training that comes in handy.
I hope it helps :)
30.9k questions
32.9k answers
500 comments
665 users