<p>I'm seeking the answer regarding how to use the Kubernetes Python API to  check health</p>
<p>I am using:</p>
<pre><code>kubectl get --raw='/readyz?verbose'  
</code></pre>

karlos
<p><code>kubectl get --raw='/readyz?verbose'</code> is probing the <code>/readyz</code> endpoint of the Kubernetes apiserver.</p>
<p>If you want to check the current running and ready state of a Pod and its containers, you can look at the Pod's <code>status.Conditions</code> and <code>status.ContainerStatuses</code> field.</p>
<p>If you want to probe the health endpoints of a container directly, you can use <code>kubectl proxy</code> or <code>kubectl port-forward</code> to open a proxy connection into the Pod's network namespace, then probe the health endpoint through that proxy.</p>
