Aks errors

From UVOO Tech Wiki
Jump to navigation Jump to search

Error from server (Forbidden): namespaces is forbidden: User "" cannot create resource "namespaces" in API group "" at the cluster scope: User does not have access to the resource in Azure. Update role assignment to allow access.

kubectl auth can-i create namespace

no - User does not have access to the resource in Azure. Update role assignment to allow access.

https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal

kubectl get clusterrolebinding aks-cluster-admin-binding-aad -o yaml

https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#azure-kubernetes-service-cluster-admin-role