Closed snirkop89 closed 2 years ago
schedulingPolicy
was never supported. It's no listed in the CRD definition https://github.com/kubeflow/mpi-operator/blob/master/manifests/base/crd.yaml
But you can still setup volcano to apply to all your jobs https://github.com/kubeflow/mpi-operator/blob/master/v2/cmd/mpi-operator/app/options/options.go#L65
Ok, Thanks. I looked under v2/crd and saw it - that was my mistake. Is there a plan to support it in the next release?
Just to clarify, we can use volcano just as it is, without sending it any options, right?
There are no plans for further support. But you are always welcomed to submit contributions.
The v2/crd was automatically generated. But even if the type is accepted, there is nothing in the code that pays attention to that field.
understood. thank you for you help.
I've built a CLI tool to create a mpi job based on our company's needs.
we want to use the volcano scheduler and give it the minAvailable parameter. the package "github.com/kubeflow/mpi-operator/v2/pkg/apis/kubeflow/v2beta1" shows the 'schedulingPolicy' options under 'runPolicy' but when I job, it does exist when I describe the job.
If I create the yaml manually I get the error: error validating data: ValidationError(MPIJob.spec.runPolicy): unknown field "schedulingPolicy" in org.kubeflow.v2beta1.MPIJob.spec.runPolicy; if you choose to igre these errors, turn validation off with --validate=false
mpi operator deployment:
No errors in the mpi operator logs only success:
How do we use the volcano scheduler correctly, and how do we pass the scheduling policy parameters?