In this article
Create scheduling gates before placement and remove only the prerequisites the responsible controller has actually satisfied.
An operator creates model Pods before the artifact manifest and placement metadata are complete. The scheduler repeatedly considers workloads that are intentionally not ready to be placed. Scheduling gates can hold this early stage explicitly, before a node is selected or a model container begins initialization.
Create the gate with the Pod
The schedulingGates list is established at Pod creation, including through admission. After creation, gates can be removed, but new ones cannot be added. This makes the mechanism a release boundary for initial placement rather than a general pause switch for an already running model. Plan the controller’s workflow around that one-way transition.
Name the condition and its owner
Use a distinct gate name for the dependency being resolved and assign responsibility for removing it. An artifact approval and a placement decision can have separate gates. Removal should follow evidence for the current Pod’s intended revision. A controller must not clear every gate merely because its own prerequisite succeeded.
Distinguish gated from unschedulable
A gated Pod is deliberately withheld from normal scheduling consideration. An unschedulable Pod has been considered but cannot satisfy placement constraints. Preserve that distinction in dashboards and incident handling. Adding GPUs does not resolve a gate whose controller is waiting on an artifact decision, and clearing a gate does not guarantee that sufficient GPU or host resources exist.
Keep readiness after placement
Scheduling readiness does not prove container startup, model loading or traffic eligibility. Those checks occur later. Once released, the Pod can still wait for resources or fail initialization. Do not use a gate as a substitute for a readiness probe, and do not assume removing it reserves a particular node unless another supported placement mechanism establishes that constraint.
Test partial release
In an isolated fixture, create a Pod with independent gates, remove one and confirm placement remains held. Remove the final gate and observe actual scheduling. Include a failed prerequisite that leaves its gate intact and a controller restart that resumes safely. Acceptance means explicit ownership and a correct release decision, not instant inference availability after an API update.
Primary references
Related reading: GPUs in Kubernetes: scheduling CPU, RAM and accelerators together; Init container downloads an artifact again: making preparation idempotent.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.