k8s报错记录(二)

2023-03-15  本文已影响0人  无味wy

报错:

resource mapping not found for name: "nginx-ingress-clusterrole" namespace: "" from "ingress-controller2.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "nginx-ingress-role" namespace: "ingress-nginx" from "ingress-controller2.yaml": no matches for kind "Role" in version "rbac.authorization.k8s.io/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "nginx-ingress-role-nisa-binding" namespace: "ingress-nginx" from "ingress-controller2.yaml": no matches for kind "RoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "nginx-ingress-clusterrole-nisa-binding" namespace: "" from "ingress-controller2.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
ensure CRDs are installed first

解决:

#版本问题
yaml里
rbac.authorization.k8s.io/v1beta1
换成
rbac.authorization.k8s.io/v1
上一篇下一篇

猜你喜欢

热点阅读