Skip to content

provide a simple REST API to find the public IP / DNS / route of a service #917

Closed

Description

@jstrachan

right now a service has a private portalIP and could have publicIPs; then it could have routes and could have DNS entries and other things. So its not totally trivial for a client to grok the public address.

It'd be nice if there was an easy REST API to be able to find the IP / host name(s) that should be used for a service given its name. Similar to the endpoints addresses REST API; but to find the public addresses (rather than endpoints implementing a service).

Something like * GET /api/v1beta4/services/{name}/public*

{
  "kind": "PublicServiceAddressList",
   ...
  "items:" [
    {
       "address": "hostOrIPAddress",
       "port": 1234
    },
    {
       "address": "hostOrIPAddress",
       "port": 1234
    }
  ]
}

Either that or we should include this metadata inside the service JSON?

Activity

  1. changed the title [-]provide a simple REST API to find the public IP / DNS of a service[/-] [+]provide a simple REST API to find the public IP / DNS / route of a service[/+] on Feb 5, 2015
  2. bparees commented on Feb 5, 2015

    @bparees
    Contributor

    @pweil- @abhgupta can one of you take a look at this request?

  3. pweil- commented on Feb 5, 2015

    @pweil-

    @jstrachan - agree, the info is scattered between multiple objects at the moment and makes it difficult to grok.

    There is currently an upstream issue that proposes a reorg of services for v1beta3 that includes route specs, dns specs, portals, and more. kubernetes/kubernetes#2585 (comment)

    With that implementation, I think doing a GET on the service itself might be enough to give you all the info you're looking for.

  4. danmcp commented on May 11, 2015

    @danmcp
  5. modified the milestone: 1.1.0 on Jun 17, 2015
  6. modified the milestone: 1.1.0 on Oct 26, 2015
  7. added a commit that references this issue on Feb 1, 2018
  8. openshift-bot commented on Feb 4, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  9. added
    lifecycle/stale
    on Feb 4, 2018
  10. openshift-bot commented on Mar 7, 2018

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  11. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Mar 7, 2018
  12. openshift-bot commented on Apr 6, 2018

    @openshift-bot
    Contributor

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

component/restapilifecycle/rottenpriority/P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions