Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

'generateName' support for Kubernetes provider #189

Open
kanarip opened this issue Nov 20, 2015 · 0 comments
Open

'generateName' support for Kubernetes provider #189

kanarip opened this issue Nov 20, 2015 · 0 comments

Comments

@kanarip
Copy link

kanarip commented Nov 20, 2015

Problem Statement

Some of the Nulecule applications in the nulecule-library, such as MariaDB and MongoDB, can only be used once within an application's (nested) graph, because the Pod and Service created by the Kubernetes provider carries a non-unique name (in their pod and service definitions).

Suggested Solution(s)

  • Support the generateName property in the artifacts, such that a mariadb-centos7-atomicapp can be pulled in more than once and pods and services are not called a duplicate "mariadb".
  • Substitute the included atomicapp's name with the name the parent gives the application in the graph, i.e.;
  graph: [
    {
      "name": "myapp-mariadb",
      "source": "docker://projectatomic/mariadb-centos7-atomicapp"
    },
    {
      "name": "anotherapp-mariadb",
      "source": "docker://projectatomic/mariadb-centos7-atomicapp"
    }
  ]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant