<p>is it possible to execute kubectl commands as a curl by simply hitting GKE kube master api for some resources and get json back ?</p>

CptDolphin
<p>Kubernetes is an entirely API-based system ,to interact with the Kubernetes API you need a ServiceAccount (obtained through a Cluster Role and a RoleBinding). </p>

<p>Here you can find the documentation for Google Kubernetes Engine API: <a href="https://cloud.google.com/kubernetes-engine/docs/reference/rest" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/reference/rest</a> </p>

<p>Also as side note, might be usefully:
<a href="https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/#accessing-the-kubernetes-api" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/#accessing-the-kubernetes-api</a></p>
