启动 Kube-scheduler 时出现的问题

启动 Kube-scheduler 时出现的问题

我正在尝试按照 Kelsey Hightower 的指南来设置 kubernetes 集群Kubernetes 的艰难之路

设置后kube-scheduler,当我启动调度程序时看到以下错误:

Jan 20 10:20:01 xyz.com kube-scheduler[12566]: F0120 10:20:01.025675 12566 helpers.go:119] **error: no kind "KubeSchedulerConfiguration" is registered for version** "kubescheduler.config.k8s.io/v1beta1"
Jan 20 10:20:01 xyz.com kube-scheduler systemd1: kube-scheduler.service: Main process exited, code=exited, status=255/n/a
Jan 20 10:20:01 xyz.com kube-scheduler systemd1: kube-scheduler.service: Unit entered failed state.
Jan 20 10:20:01 xyz.com kube-scheduler systemd1: kube-scheduler.service: Failed with result 'exit-code'.
Jan 20 10:20:06 xyz.com kube-scheduler systemd1: kube-scheduler.service: Service hold-off time over, scheduling restart.

有人能指点一下发生了什么事或者我遗漏了什么吗?我的kube-apiserverkube-controller-manager都很活跃。

我的kube-scheduler.yaml内部/etc/kubernetes/config看起来像这样。

apiVersion: kubescheduler.config.k8s.io/v1beta1
kind: KubeSchedulerConfiguration
clientConnection:
  kubeconfig: "/var/lib/kubernetes/kube-scheduler.kubeconfig"
leaderElection:
  leaderElect: true

答案1

Kubernetes 不支持更改apiVersionkubescheduler.config.k8s.io/v1beta2kubescheduler.config.k8s.io/v1beta3.
v1beta11.21

您可以查看更多这里(为了测试版), 和这里(为了v1beta3


kubernetes-the-hard-way repo 中有一个问题 (第687章),建议将 apiVersion 更改为kubescheduler.config.k8s.io/v1alpha1

相关内容