title: K8S Get deployment liveness probe status
body: <p>We have defined K8s liveness and readiness probes in our <strong>deployment</strong> resource (we have defied there liveness...), we need with <code>client-go</code> lib to access this liveness probe, how can we do that?</p>
  <p>I've tried it with the <code>client-go</code> lib</p>
  <p><a href="https://github.com/kubernetes/client-go" rel="nofollow noreferrer">https://github.com/kubernetes/client-go</a></p>
  <p>as follows:</p>
  <pre><code>client.Discovery().RESTClient().Get()
  </code></pre>
  <p>I've also tried to play around with the go library but did not find any <strong>deployment</strong> property on <code>client.CoreV1()</code>. However I do find <code>service</code> <code>pod</code> etc. What am I missing here?</p>
  <p><code>PodList, err := client.CoreV1().Pods(&quot;mynamespace&quot;).List(metav1.ListOptions{LabelSelector: &quot;run=liveness-app&quot;})</code></p>
  <p>At the end I need to get the pod liveness status according to the liveness probe which is defined in the deployment. I mean <strong>live or dead</strong></p>