Hi B.Y
You can create the Azure Kubernetes Service RBAC Writer role assignments scoped to a specific namespace within the cluster using the following command and setting the scope to the desired namespace.
az role assignment create --role "Azure Kubernetes Service RBAC Writer" --assignee <AAD-ENTITY-ID> --scope $AKS_ID/namespaces/<namespace-name>
Try the deployment after the role has been assigned successfully.
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--