IBM Z Day on Nov. 21: Discover the ideal environment for modern, mission-critical workloads. Learn more

Cloud-host a graph database using Kubernetes

Summary

Graph databases, such as OrientDB, store data in a graph structure consisting of nodes, edges, and properties. And by design, they allow simple and fast retrieval of complex hierarchical structures in a much more efficient manner than relational databases. This developer pattern shows you how to quickly host OrientDB on the IBM Cloud Kubernetes Service by using Kubernetes APIs. Cloud-hosted OrientDB can be leveraged for easier collaboration across your development and test teams.

Description

Graph databases, such as OrientDB, store data in a graph structure consisting of nodes, edges, and properties. Graph databases, by design, allow simple and fast retrieval of complex hierarchical structures in a much more efficient manner than relational databases. Gremlin is a standardized graph traversal language for retrieving data from graph databases (the way SQL is for RDBMS).

We will show you how to quickly deploy OrientDB on the IBM Cloud Kubernetes Service, so you can leverage it for your team’s development and test purposes.

The IBM Cloud Kubernetes Service combines Docker and Kubernetes to deliver powerful tools to automate the deployment, operation, scaling, and monitoring of containerized apps over a cluster of independent compute hosts by using the Kubernetes APIs.

This developer pattern provides step-by-step instructions for:

  • Deploying OrientDB container on IBM Cloud Kubernetes.
  • Storing the desired OrientDB password in Kubernetes secret.
  • Configuring the persistent storage for OrientDB volumes by making use of Kubernetes persistent volume claim.
  • Opening the deployed OrientDB’s console, as well as the Gremlin console, by making use of the Kubernetes feature of getting a shell to a running container.

Flow

flow

  1. Log in to IBM Cloud CLI and initialize the IBM Cloud Kubernetes Service plugin.
  2. Set context for Kubernetes CLI by downloading IBM Cloud Kubernetes configuration files and setting the KUBECONFIG environment variable.
  3. Save desired OrientDB password in Kubernetes secret.
  4. Configure persistent storage for OrientDB volumes.
  5. Deploy OrientDB container and NodePort service to Kubernetes cluster.
  6. Access OrientDB dashboard by using the public IP address of worker node and the NodePort mapped to OrientDB’s HTTP port.

Instructions

Find the detailed steps for this pattern in the README.

Shiva Kumar H R
Neha Setia