Fork me on GitHub

scheduler报错: Failed to watch *v1beta1.PodDisruptionBudget: failed to list *v1beta1.PodDisruptionBudget, no kind "KubeSchedulerConfiguration" is registered for version "componentconfig/v1alpha1"

问题

  • 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过时。

解决方案

  1. 升级scheduler镜像
  2. 并将老的scheduler配置的apiVersion升级
    For v1.25 ~ v1.28:
    • apiVersion: kubescheduler.config.k8s.io/v1
      or
    • apiVersion: kubescheduler.config.k8s.io/v1beta3

引用

posted @ 2024-01-25 17:36  乔闻  阅读(183)  评论(0编辑  收藏  举报