k8s 匿名用户被禁止访问 nodes is forbidden User systemanonymous cannot list resource nodes in API group at the cluster sc

现象

image-20220531164719081

解决办法

给匿名用户授权

kubectl create clusterrolebinding test:anonymous --clusterrole=cluster-admin --user=system:anonymous

image-20220531165015633

posted @ 2022-05-31 16:51  makalo  阅读(3828)  评论(0编辑  收藏  举报