When i run the kubectl version command , I get the following error message.
kubectl version
Client Version: version.Info{Major:\"1\", Minor:\"9\", GitVersion:\"v
Was facing the same problem with accessing GKE master from Google Cloud Shell.
Then I followed this GCloud doc to solve it.
Open GCloud Shell
Get External IP of the current GCloud Shell with:
dig +short myip.opendns.com @resolver1.opendns.com
Add this External IP into the "Master authorized networks" section of the GKE cluster - with a CIDR suffix of /32
After that, running kubectl get nodes
from the GCloud Shell worked right away.