Skip to content

support parent/child namespaces for service discovery #1244

Closed

Description

@jstrachan

we've been trying to figure out ways to provision things like ElasticSearch, InfluxDB, Keycloak and so forth for OpenShift V3 customers. There are 2 extreme scenarios: providing services for the administrators of OpenShift themselves versus application developers inside a namespace (different groups/teams in prod/dev/test etc).

In many ways we want to share services across as many namespaces as possible (having everything in the same namespace tends to pollute UIs, its very inefficient etc). Plus there's huge overhead running all the tools for every namespace (e.g. an Elasticsearch cluster for each namespace, a Keycloak for each namespace, Influxdb cluster for each namespace).

The other option is to have a single global installation of everything. But then that has other risks (e.g. often folks can't accept the risk of production data being potentially exposed in a shared Elasticsearch cluster with non-production people).

e.g. for logs / metrics / security, you often want groups of things. A typical on premise may want to isolate logs/metrics/authentication for production systems from non-production. So you may just want, say, 2 group; one for prod stuff one for non-prod and for each of those to have Elasticsearch, InfluxDB and so forth.

If there was a way of having a parent/child relationship with namespaces; any namespace in a child of the 'development' namespace could inherit all the shared services in that namespace (e.g. shared Elasticsearch / InfluxDb and so forth).

By sharing here I mean that the Services in this namespace would get pre-populated with all the services from the parent namespace; so it would look and feel like all these services are in that namespace; that the implementations could be shared between namespaces.

The general idea is to make things look and feel like things are in their own separate namespaces; but have a grouping/organisation structure so that things can be shared.

i.e. I'm suggesting a way to map namespaces as being children of a parent namespace; so that services can be provisioned in the parent namespace which would then be visible in the child namespace.

This simple idea would make it easy to share horizontal services across teams/projects/namespaces without having to either run everything in every namespace - and we'd be able to reuse the existing Kubernetes service discovery mechanism too.

Activity

  1. jstrachan commented on Mar 6, 2015

    @jstrachan
    ContributorAuthor

    I guess this general idea is like having organisations in authentication; a way of grouping namespaces and sharing services between them

  2. jstrachan commented on Mar 6, 2015

    @jstrachan
    ContributorAuthor

    a similar but unrelated issue on this topic. We've a really nice Arquillian based integration testing framework for kubernetes that can easily perform java / junit based integration tests of kubernetes replication controllers / services / pods.

    It works by creating a new namespace for each integration test; which is great. However it'd be nice if we could associate each new dynamically created namespace with a group/organisation; so it could automatically inherit centralised logging and so forth

  3. smarterclayton commented on Mar 9, 2015

    @smarterclayton
    Contributor

    I'm really hesitant to introduce hierarchy but I agree the use case is valid and we need to have a way to solve this for efficiency reasons. I do not want to do nested ACL traversals, but there may be a way to simplify this. We should try to sketch out a couple of designs on how to do this.

  4. jstrachan commented on Mar 9, 2015

    @jstrachan
    ContributorAuthor

    Agreed. I'm hoping this can be lightweight really and not involve massive changes.

    Mostly its about having an easy way to discover services in a parent/inherited namespace; we could maybe leave the ACL stuff as it is (each namespace defines its own ACL) and just have a way to import services (e.g. populate the service environment variables for inherited services etc)

  5. modified the milestone: 1.1.0 on Jun 17, 2015
  6. modified the milestone: 1.1.0 on Oct 26, 2015
  7. openshift-bot commented on Feb 5, 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

  8. added
    lifecycle/stale
    on Feb 5, 2018
  9. 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

  10. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Mar 7, 2018
  11. 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

lifecycle/rottenpriority/P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions