kubectl command, below error is seen:Error from server (Forbidden): nodes is forbidden: User "sso:[email protected]" cannot list resource "nodes" in API group "" at the cluster scope
clusterrolebindings for a user or a group which is having this issue, it is seen that the name under rbac.authorization is not configured as required. k get clusterrolebinding "vmware-system-auth-sync-edit:<domain_name>:<user_or_group_name>" -o yaml- apiGroup: rbac.authorization.k8s.iokind: Groupname: <group_name>@domain_alias_name- apiGroup: rbac.authorization.k8s.iokind: Groupname: sso:<group_name>@domain_nameTo resolve this issue, use the VCFOps for all SSO authentication configurations.
By configuring AD via VCFOps, the system ensures the correct sso:@example.com string is pushed to the Kubernetes Guest Clusters, satisfying the Kubernetes RBAC requirements.