Linux

啟動 Kube-scheduler 的問題ķubernetesthehard你好__ķ在b和rn和噸和s噸H和H一種rd在一種是Kubernetes the hard way

  • January 24, 2022

我正在嘗試按照 Kelsey Hightower 的Kubernetes The Hard Way的指南來設置 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

更改apiVersionkubescheduler.config.k8s.io/v1beta2kubescheduler.config.k8s.io/v1beta3Kubernetes 1.21

v1beta1不支持。

您可以在此處(對於v1beta2)和此處(對於v1beta3)查看更多資訊


在 kubernetes-the-hard-way repo ( #687 ) 中打開了一個問題,建議將 apiVersion 更改為kubescheduler.config.k8s.io/v1alpha1

引用自:https://serverfault.com/questions/1090613