nulecule icon indicating copy to clipboard operation
nulecule copied to clipboard

'generateName' support for Kubernetes provider

Open kanarip opened this issue 10 years ago • 0 comments

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"
    }
  ]

kanarip avatar Nov 20 '15 07:11 kanarip