[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Health check via API



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 <ccoleman redhat com>
Date: Thu, Aug 24, 2017 at 6:10 PM
Subject: Re: Health check via API
To: bahhooo <bahhoo gmail com>
Cc: "users lists openshift redhat com" <users lists openshift redhat com>


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 <bahhoo gmail com> 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
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users





--
Bahaddin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]