Deployment of the virtualization is always done using the Operator. However, the Custom Resource is defined for the deployment of virtualization depends upon the type of development model used.
Once the Operator is available on your OpenShift cluster you can deploy a VDB by executing below and supplying YAML file created
oc create -f dv-customer.ymlwhere dv-customer.yml is the CR (custom resource) file that defines your virtualization artifact.
|
Important
|
Before you deploy above virtualization, we need to prepare and gather all the configuration that needed for connecting to the data sources involved. For example checkout the "datasources" section. |
You can list all the virtualizations available in the OpenShift cluster on a given namespace by executing
oc get vdbsor get a particular one by executing
oc get vdb dv-customer
# or below to see whole yaml resource for the vdb
oc get vdb dv-customer -o yamlThe status field in the yaml file defines the status of the virtualization.
If you want to make inline modifications to a virtualization, you can do
oc edit vdb dv-customer
it will present a editor, once you finish the Operator will do another deployment of the service with new contents.
One can delete the above virtualization by executing
oc delete vdb dv-customerWhen the virtualization completed with its deployment, it will create a Service with name of the custom resource (dv-customer from above example),
-
Port
31000is available for JDBC connection. -
Port
5432will be open for anyPGspecific client including a ODBC client -
A
httpendpoint with route will be available for aodata. -
check out documention on the
exposestag in the Custom Resource on how to createLoadBalance`rorNodePortusing which one can access the virtual database from external client application outside the OpenShift/Kubernetes cluster.
Once virtualization is deployed in the OpenShift, it can be accessed using JDBC/ODBC and with variety of PostgreSQL clients along with OData. See instructions here