bg
Deploy BangDB using OC command tool - BangDB = NoSQL + AI + Stream

Deploy BangDB using OC command tool

chevron

Deploy BangDB on OpenShift

METHOD 1 - Deploying BangDB on openshift using OC command line tool

Let’s create a ‘BangDB’ instance as a Kubernetes deployment object. Here is the yaml file, bangdb.yaml for deployment object. Please don’t forget to change the value of namespace in the yaml file below.

kind: Deployment
apiVersion: apps/v1
metadata:
  name: bangdb
  # You must provide a valid value for the namespace below (You can provide the namespace you created in the earlier step).
  namespace: <namespace>
  labels:
    app: bangdb
spec:
  replicas: 1
  selector:
    matchLabels:
      deployment: bangdb
  template:
    metadata:
      creationTimestamp: null
      labels:
        deployment: bangdb
    spec:
      containers:
        - name: bangdb
          image: >-
            bangdb/bangdb-server-2
          ports:
            - containerPort: 10101
              protocol: TCP
          imagePullPolicy: Always

Now you can run the following command from the Bastion node.

oc apply -f bangdb.yaml
This deployment creates a single pod running ‘BangDB'. To verify the deployment you can check the logs of the pod created. The logs should appear as shown below saying 'BangDB’ service is up and running.

image