使用 kops 旋转的新集群 1.8.10。
在 K8S 1.8 中有一个新特性Pod Priority and Preemption
。更多信息:https ://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#how-to-use-priority-and-preemption
kube-apiserver
正在记录错误
I0321 16:27:50.922589 7 wrap.go:42] GET /apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations: (140.067µs) 404 [[kube-apiserver/v1.8.10 (linux/amd64) kubernetes/044cd26] 127.0.0.1:47500] I0321 16:27:51.257756 7 wrap.go:42] GET /apis/scheduling.k8s.io/v1alpha1/priorityclasses?resourceVersion=0: (168.391µs) 404 [[kube-apiserver/v1. 8.10 (linux/amd64) kubernetes/044cd26] 127.0.0.1:47500] E0321 16:27:51.258176 7 reflector.go:205] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:73 : Failed to list *scheduling.PriorityClass: 服务器找不到请求的资源 (get priorityclasses.scheduling.k8s.io)
我完全不明白为什么。没有人应该访问它,因为它甚至还没有启用(它是 alpha 版)。
没有 pod 正在使用priorityClassName
.
运行说明:
kubectl explain priorityclass error: API version: scheduling.k8s.io/v1alpha1 is not supported by the server。使用以下之一:[apiregistration.k8s.io/v1beta1 extensions/v1beta1 apps/v1beta1 apps/v1beta2 authentication.k8s.io/v1
authentication.k8s.io/v1beta1 authorization.k8s.io/v1 authorization.k8s.io/v1beta1 autoscaling /v1 自动缩放/v2beta1 批处理/v1 批处理/v1beta1 证书.k8s.io/v1beta1 网络.k8s.io/v1 策略/v1beta1 rbac.authorization.k8s.io/v1 rbac.authorization.k8s.io/v1beta1 storage.k8s。 io/v1 storage.k8s.io/v1beta1 apiextensions.k8s.io/v1beta1 v1]
这是正常的还是kops
特殊的?