k8s v1.23.1部署ingress nginx报错no matches for kind

unable to recognize "mandatory.yaml": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "mandatory.yaml": no matches for kind "Role" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "mandatory.yaml": no matches for kind "RoleBinding" in version "rbac.authorization.k8s.io/v1beta1"
unable to recognize "mandatory.yaml": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"

解决方法:

将报错的v1beta1改为v1即可,最终的mandatory.yaml内容如下:

 

posted @ 2023-05-25 16:37  小-y  阅读(702)  评论(0)    收藏  举报