I was deploying a new Tanzu Kubernetes Cluster the other day with:
tkg create cluster cody-prod --plan prod --vsphere-controlplane-endpoint-ip 10.21.202.236
Oh great, it worked without sudo!
Except not quite:
The VMs were all deployed and good, but it looks like it did not quite have the permissions to save the information to my local config. This is likely salvageable, but since it is new, just as simple to delete it and re-run with sudo
sudo tkg delete cluster cody-prod
Deletes the VMs and removes the references. The likely solution here is folder permissions, but for now just use sudo with tkg when provisioning new resources.