After deploying the
VMware Tanzu Kubernetes Grid workload cluster, you can obtain the clusters <KUBECONFIG_FILE> by logging in through ssh to one of the CPN nodes by using the IP of the node along with the username and password assigned during cluster creation and by invoking the following command.
ssh capv@<WORKLOAD_CPN_IP> kubectl config view --minify --raw >> /tmp/<cluster_name>
You can then copy the output file /tmp/<cluster_name>
to the deployment host under the home directory /home/<user>/.kube and use this location for the KUBECONFIG property in the deploy.settings file used for deployment.