how to check whether RBAC is enabled, using kubectl

前端 未结 6 1212
北恋
北恋 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:04

    Option #1: If you have access to master node then login into and check below

    ps -aef | grep -i apiserver
    The options should have --authorization-mode=RBAC otherwise RBAC not enabled.
    

    Option #2:

    kubectl get clusterroles | grep -i rbac
    

    Hope this helps

    Rgds Sudhakar

提交回复
热议问题