During the provisioning process, the following error messages appear:
Error from server (Forbidden): error when retrieving current configuration...calicoconfigs.cni.tanzu.vmware.com "tkgs-n-#####" is forbidden: User "sso:#####" cannot get resource "calicoconfigs"clusterbootstraps.run.tanzu.vmware.com "tkgs-n-#####" is forbidden: User "sso:#####" cannot get resource "clusterbootstraps"clusters.cluster.x-k8s.io "tkgs-n-#####" is forbidden: User "sso:#####" cannot get resource "clusters"
vSphere Kubernetes Service (VKS)
The user account or service account lacks the necessary Kubernetes RBAC permissions to access required resources in the guest cluster namespace. This is typically due to a missing ClusterRoleBinding that prevents the system from retrieving configurations for resources such as calicoconfigs, clusterbootstraps, and clusters.
kubectl vsphere login --server <Supervisor_IP> --vsphere-username <username>@<domain>kubectl create clusterrolebinding <binding-name> --clusterrole=<role-name> --user=sso:<username>@<domain> (Example: kubectl create clusterrolebinding my-binding --clusterrole=cluster-admin --user=sso:[email protected])kubectl auth can-i list pods --all-namespacesFor further assistance, contact Broadcom Support