mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
57 lines
2.2 KiB
Plaintext
57 lines
2.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * cli_reference/openshift_developer_cli/creating-an-application-with-a-database.adoc
|
|
|
|
[id="deploying-a-database-manually_{context}"]
|
|
= Deploying a database manually
|
|
|
|
. List the available services:
|
|
+
|
|
----
|
|
$ odo catalog list services
|
|
NAME PLANS
|
|
django-psql-persistent default
|
|
jenkins-ephemeral default
|
|
jenkins-pipeline-example default
|
|
mariadb-persistent default
|
|
mongodb-persistent default
|
|
mysql-persistent default
|
|
nodejs-mongo-persistent default
|
|
postgresql-persistent default
|
|
rails-pgsql-persistent default
|
|
----
|
|
|
|
. Choose the `mongodb-persistent` type of service and see the required parameters:
|
|
+
|
|
----
|
|
$ odo catalog describe service mongodb-persistent
|
|
*********************** | *****************************************************
|
|
Name | default
|
|
----------------- | -----------------
|
|
Display Name |
|
|
----------------- | -----------------
|
|
Short Description | Default plan
|
|
----------------- | -----------------
|
|
Required Params without a |
|
|
default value |
|
|
----------------- | -----------------
|
|
Required Params with a default | DATABASE_SERVICE_NAME
|
|
value | (default: 'mongodb'),
|
|
| MEMORY_LIMIT (default:
|
|
| '512Mi'), MONGODB_VERSION
|
|
| (default: '3.2'),
|
|
| MONGODB_DATABASE (default:
|
|
| 'sampledb'), VOLUME_CAPACITY
|
|
| (default: '1Gi')
|
|
----------------- | -----------------
|
|
Optional Params | MONGODB_ADMIN_PASSWORD,
|
|
| NAMESPACE, MONGODB_PASSWORD,
|
|
| MONGODB_USER
|
|
----
|
|
|
|
. Pass the required parameters as flags and wait for the deployment of the database:
|
|
+
|
|
----
|
|
$ odo service create mongodb-persistent --plan default --wait -p DATABASE_SERVICE_NAME=mongodb -p MEMORY_LIMIT=512Mi -p MONGODB_DATABASE=sampledb -p VOLUME_CAPACITY=1Gi
|
|
----
|