报错:
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
网友评论