Git Product home page Git Product logo

Comments (5)

sheldonh avatar sheldonh commented on June 7, 2024

I think I'll chat to the skydns folks about how they think services that expose multiple ports should be handled. I don't think they're aiming at standard SRV lookup.

from registrator.

progrium avatar progrium commented on June 7, 2024

Since I didn't add skydns, can you clarify the difference in how it works and how it should work?

from registrator.

sheldonh avatar sheldonh commented on June 7, 2024

Hmmm. It should be broken for etcd too. Let me take a look and figure out
what you did there.

If I specify SERVICE_ID AND SERVICE_NAME for a container that exposes 26379
and 6379, only 6379 makes it into skydns.
On 14 Oct 2014 18:55, "Jeff Lindsay" [email protected] wrote:

Since I didn't add skydns, can you clarify the difference in how it works
and how it should work?


Reply to this email directly or view it on GitHub
https://github.com/progrium/registrator/issues/33#issuecomment-59078535.

from registrator.

mgood avatar mgood commented on June 7, 2024

@sheldonh it looks like instead of setting one SERVICE_NAME and one SERVICE_ID for the container, you need to use this method of providing unique names on a per-port basis: Multiple services with metadata.

The default naming pattern appends the port number if there are multiple ports exposed by the container, e.g. "web-80" and "web-443". However, if you set SERVICE_NAME explicitly, it's overriding that name for all exposed ports.

Perhaps a warning would help if multiple services in the container have the same id and name.

from registrator.

progrium avatar progrium commented on June 7, 2024

Sounds like it's working as expected and @mgood's suggestion for the workaround sounds right.

from registrator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.