I have created a k8s cluster on GCP. And then I installed kubectl tool and Google Cloud SDK locally. Other than that I have done no extra configuration. I just added kubectl location to system path.
Now when I do 'kubetcl get pods', it fetches me the list of pods deployed in GCP cluster.
But how does kubectl know about that cluster? I surely didn't provide any information to it.