<p>is there any k8s rest api endpoint to fetch all the pods and its details of a paricular node.
I use minikube and started a proxy using <code>kubectl proxy --port=7070 &amp;</code>.
We have endpoints like <code> GET /api/v1/namespaces/{namespace-name}/pods</code>. Do we have any similar endpoint to access pods belonging to a specific node? I dont want to use kubectl commands.</p>

barath
<blockquote>
<p>I dont want to use kubectl commands.</p>
</blockquote>
<p><code>kubectl</code> is a <code>REST</code> client for k8s <code>API server</code>. If you don't want to use it - you will need to perform the same requests manually.</p>
<p>There is no &quot;legal&quot; way to get information from k8s cluster without talking to <code>API Server</code>. The <code>API Server</code> is the only source of truth and all controllers are using the <code>API Server</code> to perform required changes. So, probably, you should rely on the information provided by the <code>API Server</code>.</p>
<p>You can use <code>kubectl</code> to get pods for specific node by:</p>
<pre><code>kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=&lt;node&gt;
</code></pre>
<p>check this out: <a href="https://stackoverflow.com/questions/39231880/kubernetes-api-gets-pods-on-specific-nodes">Kubernetes API - gets Pods on specific nodes</a></p>
<p>You can also do that without using <code>kubectl</code> - read this: <a href="https://kubernetes.io/docs/concepts/overview/kubernetes-api/" rel="nofollow noreferrer">The Kubernetes API</a></p>
