This is the Configuration of Dgraph deployment on OpenShift for project Thoth.
Deploying Dgraph on OpenShift depends upon requirements.Based on Non-High Availability or High Availability Dgraph is needed:
Start with dgraph image, import the dgraph image to the openshift namespace.(use the imagestream openshift template)
-
High Availability:
- Deploy Zero : Use the Zero OpenShift Template
- Deploy Alpha: Use the Alpha OpenShift Template
-
Non High Availability:
- Deploy Non HA: Use the Dgraph Non-HA OpenShift Template
PVC are created with creation of zero's and alpha's.
Prometheus Metrics: Deploy prometheus exporter to gather dgraph metrics.(Use the prom exporter template). Dgraph Metrics documentation: Docs
Note:
- To re-setup the dgraph deployment. Delete the following resources:
pods, statefulsets, services, persistentvolumeclaims, persistentvolumes.
Then use the deployment steps to setup. - For scale down instructions use the following operations docs.