Open topic with navigation
To contain applications, OpenShift uses projects. When containing a NuoDB database application, an OpenShift project stores the NuoDB templates, and also allows you to deploy a cluster-wide NuoDB domain. If a cluster-wide NuoDB project has not been created already - either by admins or a cluster provisioning script, then create a project for your NuoDB domain.
Note: The following steps assume that you have already logged into OpenShift and have previously created one or more projects.
To create a project for your NuoDB application, do the following:
The NuoDB YAML files are required to create the NuoDB database system which is comprised of admin services, database processes, and Insights monitoring processes.
Note: You can only import these templates after you have obtained them. For details of the templates available and how to obtain them, see About OpenShift Templates.
To import template files into an OpenShift project, click Add to Project and select Import YAML/JSON templates.
You may also import template files from the OpenShift master node using the following
oc create commands:
Import a Single Template
oc create -f <template.yaml> -n <project name>
Import Multiple Templates by Loading an Entire Directory
oc create -f <directory name> -n <project name>
Before creating a database, you must first create a NuoDB administration domain in the NuoDB project if one has not already been created. Using the NuoDB Admin (Container Native Storage) template, launch an administration tier with the requisite three nodes.
Note: The creation of an administration domain using the OpenShift interface automatically starts NuoDB Insights. For more information on NuoDB Insights, see Database Monitoring.
To create an administration domain, do the following:
Note: In the example above, three Admin Service pods have been created in zone
a and also in zone
b by performing the above steps twice, once for each zone.