Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingress support different namespaces #17642

Closed
owenhaynes opened this issue Nov 23, 2015 · 3 comments
Closed

Ingress support different namespaces #17642

owenhaynes opened this issue Nov 23, 2015 · 3 comments

Comments

@owenhaynes
Copy link

Would be nice if the ingress could work with services in other namespaces, as we currently use namespaces to overcome restrictions of the service name length and only require one load balancer nginx to access theses services.

so something like the following:

{
  "apiVersion": "extensions/v1beta1",
  "kind": "Ingress",
  "metadata": {
    "name": "test-ingress"
  },
  "spec": {
    "rules": [{
      "http": {
        "paths": [
          {
            "path": "/test",
            "backend": {
              "namespace": "group-one",
              "serviceName": "app1",
              "servicePort": "80"
            }
          }
        ]
      }
    }]
  }
}

to gain something like
test.com/group-one/app1/

@mikedanese
Copy link
Member

overcome restrictions of the service name length

Why do you need such long names?

@owenhaynes
Copy link
Author

We launch the same service set for different organisation groups each
configured with different environments depending on the organisation.

Frontend-example-org

So we can not included the organisation in the name of the service as it
would make the service to long. So we move the organisation to the
namespace level which makes it cleaner and helps avoid the restriction.

We could of used labels but we would then have to generate random unique
names for the services to avoid clashes.

Namespaces also allow us to keep the services organised and all of there
components, and help with other restrictions later on

On 23 Nov 2015 4:51 pm, "Mike Danese" notifications@github.com wrote:

overcome restrictions of the service name length

Why do you need such long names?


Reply to this email directly or view it on GitHub
#17642 (comment)
.

@bprashanth
Copy link
Contributor

Lets continue discussion on #17088

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants