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 :)
31k questions
32.8k answers
501 comments
693 users