How to change the number of replicas during scheduling?

Hi all,

I’m new to k8s development and now I’m working on a plugin based on scheduling framework. Here’s a unique demand that it needs to add a pod during scheduling if meet a special condition. The new pod is a same one, but the podInfo may be different from the current pod which is being scheduled. I think it might be implemented as a pre-score plugin.

So, I’m wondering if there’s anything about adding a pod to the scheduling queue or change the replica number during scheduling? Any information is welcomed.


ps. my k8s version is 1.22