问题
- Failed to watch *v1beta1.PodDisruptionBudget: failed to list *v1beta1.PodDisruptionBudget: the server could not find the requested resource
- no kind "KubeSchedulerConfiguration" is registered for version "componentconfig/v1alpha1"
问题原因
升级了k8s集群,但是scheduler镜像没有升级。API version过时。
解决方案
- 升级
scheduler
镜像 - 并将老的
scheduler
配置的apiVersion
升级
For v1.25 ~ v1.28:- apiVersion: kubescheduler.config.k8s.io/v1
or - apiVersion: kubescheduler.config.k8s.io/v1beta3
- apiVersion: kubescheduler.config.k8s.io/v1
引用
- https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/427#issuecomment-1133745136
- https://gitlab.com/gitlab-org/charts/gitlab/-/issues/3037