Kubernetes version 1.22. Cluster created by kops.
I'm trying to alternate default kube-scheduler config (adding profiles) as descibed here https://kubernetes.io/docs/reference/config-api/kube-scheduler-config.v1beta3/#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration .
apiVersion: kubescheduler.config.k8s.io/v1beta3
kind: KubeSchedulerConfiguration
profiles:
- schedulerName: default-scheduler
pluginConfig:
blah-blah...
But simple kubectl command fails:
kubectl apply -n kube-system -f scheduler-config.yaml
error: unable to recognize "scheduler-config.yaml": no matches for kind "KubeSchedulerConfiguration" in version "kubescheduler.config.k8s.io/v1beta3"
The KubeSchedulerConfiguration
is in "kubescheduler.config.k8s.io/v1beta3". Should I use some another command to apply it?
Thank you for any help!
/Serguei