Linux
啟動 Kube-scheduler 的問題ķubernetesthehard你好__ķ在b和rn和噸和s噸H和H一種rd在一種是Kubernetes the hard way
我正在嘗試按照 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-apiserver
和kube-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
更改
apiVersion
為kubescheduler.config.k8s.io/v1beta2
或kubescheduler.config.k8s.io/v1beta3
。Kubernetes 1.21
v1beta1
不支持。您可以在此處(對於v1beta2)和此處(對於v1beta3)查看更多資訊
在 kubernetes-the-hard-way repo ( #687 ) 中打開了一個問題,建議將 apiVersion 更改為
kubescheduler.config.k8s.io/v1alpha1