Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not support kubernetes 1.23 #24

Open
hwdef opened this issue Feb 15, 2022 · 4 comments
Open

does not support kubernetes 1.23 #24

hwdef opened this issue Feb 15, 2022 · 4 comments

Comments

@hwdef
Copy link

hwdef commented Feb 15, 2022

https://kubernetes.io/docs/reference/scheduling/policies/

the policy-config-file is removed in kubernetes 1.23

@DennisYoung96
Copy link

yes, so how to make the KubeSchedulerConfiguration now? can anyone share that?(^_−)☆

@kevinfeng
Copy link

kevinfeng commented Feb 17, 2023

I use config below and it works:

apiVersion: kubescheduler.config.k8s.io/v1beta2
kind: KubeSchedulerConfiguration
clientConnection:
  kubeconfig: /etc/kubernetes/scheduler.conf
extenders:
- urlPrefix: "http://{ip}:{port}/scheduler"
  filterVerb: predicates
  enableHTTPS: false
  nodeCacheCapable: false

@jason-gideon
Copy link

jason-gideon commented May 24, 2023

  1. gpu-admission need assgined to controlplane
  2. perpare scheduler-config.yaml as below
[root@loong64pc kube-scheduler-v1.25.5-KubeSchedulerConfiguration]# cat scheduler-config.yaml
apiVersion: kubescheduler.config.k8s.io/v1
kind: KubeSchedulerConfiguration
clientConnection:
  kubeconfig: /etc/kubernetes/ssl/kubecfg-kube-scheduler.yaml
extenders:
- urlPrefix: "http://127.0.0.1:3456/scheduler"
  filterVerb: predicates
  enableHTTPS: false
  nodeCacheCapable: false
  ignorable: true
  1. kube-scheduler --config scheduler-config.yaml

@pandaoknight
Copy link

  1. gpu-admission need assgined to controlplane
  2. perpare scheduler-config.yaml as below
[root@loong64pc kube-scheduler-v1.25.5-KubeSchedulerConfiguration]# cat scheduler-config.yaml
apiVersion: kubescheduler.config.k8s.io/v1
kind: KubeSchedulerConfiguration
clientConnection:
  kubeconfig: /etc/kubernetes/ssl/kubecfg-kube-scheduler.yaml
extenders:
- urlPrefix: "http://127.0.0.1:3456/scheduler"
  filterVerb: predicates
  enableHTTPS: false
  nodeCacheCapable: false
  ignorable: true
  1. kube-scheduler --config scheduler-config.yaml

The mapping of k8s version to kubescheduler.config.k8s.io/.. :
k8s 1.18.8 => v1alpha2
k8s 1.24 => v1beta3
k8s 1.26.3 => v1

The way of using kube-scheduler --config xxx.yaml --... is available.
Notice that kube-scheduler is useually running as Static-Pod in your k8s control-plane nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants