Copy the cluster credentials to a local file, and you can create and save the cluster credentials to $HOME/.kube/config (location where kubectl credentials are to be stored). You can also name a new file, such as /tmp/kubeconfig, and run the export KUBECONFIG=/tmp/kubeconfig command.

After the preceding operation is performed, you can confirm the cluster connectivity by running the following command.