how to check whether RBAC is enabled, using kubectl

前端 未结 6 1208
北恋
北恋 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 12:56

    For Azure (AKS) I think Azure CLI works well.

    az resource show -g  -n  --resource-type Microsoft.ContainerService/ManagedClusters --query properties.enableRBAC
    

    It is basically the same thing as using resources.azure.com, but I find it quicker to use the Azure CLI

提交回复
热议问题