diff --git a/pkg/cli/job/run.go b/pkg/cli/job/run.go index c171e15747..80f1fe33c3 100644 --- a/pkg/cli/job/run.go +++ b/pkg/cli/job/run.go @@ -59,7 +59,7 @@ func InitRunFlags(cmd *cobra.Command) { cmd.Flags().IntVarP(&launchJobFlags.Replicas, "replicas", "r", 1, "the total tasks of job") cmd.Flags().StringVarP(&launchJobFlags.Requests, "requests", "R", "cpu=1000m,memory=100Mi", "the resource request of the task") cmd.Flags().StringVarP(&launchJobFlags.Limits, "limits", "L", "cpu=1000m,memory=100Mi", "the resource limit of the task") - cmd.Flags().StringVarP(&launchJobFlags.SchedulerName, "scheduler", "S", "kube-batch", "the scheduler for this job") + cmd.Flags().StringVarP(&launchJobFlags.SchedulerName, "scheduler", "S", "volcano", "the scheduler for this job") cmd.Flags().StringVarP(&launchJobFlags.FileName, "filename", "f", "", "the yaml file of job") } diff --git a/pkg/cli/queue/common.go b/pkg/cli/queue/common.go index 304a7e3d69..292c10b16d 100644 --- a/pkg/cli/queue/common.go +++ b/pkg/cli/queue/common.go @@ -29,7 +29,7 @@ type commonFlags struct { } func initFlags(cmd *cobra.Command, cf *commonFlags) { - cmd.Flags().StringVarP(&cf.SchedulerName, "scheduler", "", "kube-batch", "the scheduler for this job") + cmd.Flags().StringVarP(&cf.SchedulerName, "scheduler", "", "volcano", "the scheduler for this job") cmd.Flags().StringVarP(&cf.Master, "master", "s", "", "the address of apiserver") if home := homeDir(); home != "" {