Thanks, I figured out how to do it. In case someone wants to the same thing:
oc get pods -o custom-columns=NAME:.metadata.name,Ready:status. containerStatuses[0].ready This will list all the pods with readiness status NAME Ready pod-1 true pod-2 true Thanks, Bahhoo > From: Clayton Coleman <[email protected]> > Date: Thu, Aug 24, 2017 at 6:10 PM > Subject: Re: Health check via API > To: bahhooo <[email protected]> > Cc: "[email protected]" <[email protected]> > > > Pod status contains conditions and container status information that you > can use. Use "oc explain pod.status.conditions" and "oc explain > pod.status.containerStatuses" > > On Thu, Aug 24, 2017 at 12:09 PM, bahhooo <[email protected]> wrote: > >> Hello, >> >> I would like to check the health status of my pods via API. I couldn't >> see anything relevant in the docs. >> >> There is v1.Probe with which you can execute a command or make an HTTP >> request etc. >> But I would like to check the status of a pod which already has a health >> check. >> >> Is this even possible? >> >> >> Thanks, >> Bahhoo >> >> >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> >> > > > > -- > Bahaddin >
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
