Skip to content

get services should show # of running pods #1721

Closed

Description

@thesteve0

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

Activity

  1. liggitt commented on Apr 16, 2015

    @liggitt
    Contributor

    osc get is just a passthrough to the API call for that one object type. Try osc describe service [name]

  2. jwforres commented on Apr 21, 2015

    @jwforres
    Member

    Describe doesn't appear to show this today, but it probably should.

  3. 0xmichalis commented on May 29, 2015

    @0xmichalis
    Contributor

    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>.

  4. added a commit that references this issue on Jun 12, 2015
    36a441b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions