When I run a simple command on my local shell with gcloud sdk.
$ kubectl get pod
I get such error:
Error from server
In addition to setting
gcloud config unset container/use_client_certificate
Also make sure you do not have this env variable set to True
CLOUDSDK_CONTAINER_USE_CLIENT_CERTIFICATE