Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 479 Bytes

k8s-声明PodPreset异常.md

File metadata and controls

22 lines (15 loc) · 479 Bytes

一、异常信息

[root@k8s-master podpreset]#  kubectl apply -f podpreset.yaml
error: unable to recognize "podpreset.yaml": no matches for kind "PodPreset" in version "settings.k8s.io/v1alpha1"

二、解决

/etc/kubernetes/manifests/kube-apiserver.yaml 添加如下内容

- --enable-admission-plugins=NodeRestriction,PodPreset
- --runtime-config=settings.k8s.io/v1alpha1=true

然后重启 kubelet

$ systemctl restart kubelet