I am running into error while creating custom scheduler in cluster

Need assistance one of my following issue
/root/my-scheduler-config.yaml This yaml file contain below config
apiVersion: kubescheduler.config.k8s.io/v1
kind: KubeSchedulerConfiguration
profiles:

  • schedulerName: my-scheduler
    leaderElection:
    leaderElect: false

and I am running k apply -f /root/my-scheduler-config.yaml to create scheduler I am running into following error
error: resource mapping not found for name: “” namespace: “” from “/root/my-scheduler-config.yaml”: no matches for kind “KubeSchedulerConfiguration” in version “kubescheduler.config.k8s.io/v1
ensure CRDs are installed first

HI @Vijaykumar-Fulari

What’s the cluster and kubectl version?
clientconnection.kubeconfig is a required field in KubeSchedularConfiguration

Are you trying this on KK labs?

Yes, this has been resolved. thanks!