Hello, I’m new to Kubernetes. I’m wondering if I can implement a Kubernetes scheduler which has the following functionality:
Let’s say we have 2 pods. And let’s say pod 1 is running and pod 2 is waiting.
And somehow pod 1 needs to wait for some condition. So pod 1 tells the scheduler that it wants to sleep. Thus the scheduler stops pod 1 and runs pod 2.
Later when pod 1’s condition is met, the scheduler should stop pod 2 and continue to run pod 1.
Is it possible to schedule pods in Kubernetes in this way?
If it’s possible, what API should I use / what documentation should I look into?
Any advice/comments are appreciated!