how to check whether RBAC is enabled, using kubectl

前端 未结 6 1197
北恋
北恋 2020-12-13 12:33

I\'m trying to install a helm package on a kubernetes cluster which allegedly has RBAC disabled. I\'m getting a permission error mentioning clusterroles.rbac.authoriza

6条回答
  •  囚心锁ツ
    2020-12-13 13:03

    I wish there was a better way but what I use is:

    $ kubectl cluster-info dump | grep authorization-mode
    

    If you can execute it you should either see RBAC listed there or not, and if you don't have the permissions to do it, well, chances are that RBAC is enabled.

提交回复
热议问题