You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doing
'osc get services' should also show the number of running pods per service. The web console does this and it would be very helpful for 1) debugging non running services 2) quick estimates of resource usage
Here is an example of how it could look:
spousty@localhost openshift-client$ ./osc get services
NAME LABELS SELECTOR IP PORT PODS
database template=application-template-stibuild name=database 172.30.17.25 5434 6
frontend template=application-template-stibuild name=frontend 172.30.17.26 5432 0
Apparently the number of a service's pods is the number of its endpoints.
While working on changing it upstream, I argued that we shouldn't let the user guess about it, though I can see the point of not correlating services with pods but with endpoints. As @liggitt mentioned, you can derive the pod number from osc describe svc <name>.
Activity
liggitt commentedon Apr 16, 2015
osc getis just a passthrough to the API call for that one object type. Tryosc describe service [name]jwforres commentedon Apr 21, 2015
Describe doesn't appear to show this today, but it probably should.
0xmichalis commentedon May 29, 2015
Apparently the number of a service's pods is the number of its endpoints.
While working on changing it upstream, I argued that we shouldn't let the user guess about it, though I can see the point of not correlating services with pods but with endpoints. As @liggitt mentioned, you can derive the pod number from
osc describe svc <name>.UPSTREAM: Show pods number when describing services
Squashed 'cmd/service-catalog/go/src/github.com/kubernetes-incubator/…