Advice Needed: Connecting External Apps and XDCR Between Couchbase Clusters in CNF env

Hi Everyone,

We have a working Couchbase cluster deployed along with couchbase operator inside a RedHat OpenShift environment and are seeking advice on the following:

  • Connecting an external application (hosted outside OCP1) to the Couchbase cluster over a specific network, “NW 2”.
  • Replicating data between two Couchbase clusters hosted on geographically separated OpenShift clusters (OCP1 and OCP2) over “NW 1”.

Requirement:

  • NW 1: Used for Couchbase clusters in two OpenShift sites (Site 1 and Site 2) to sync data via XDCR.
  • NW 2: Used for communication between applications and Couchbase, both from outside and inside the OpenShift clusters.

This network separation is important for security and traffic management within our CNF environment.

Current Setup:

  • Couchbase is exposed using NodePort services.
  • Currently, applications outside the OpenShift cluster “cannot connect to Couchbase using NW 2” IP addresses.
  • Couchbase clusters in Site 1 and Site 2 “cannot communicate over NW 1” for XDCR synchronization.
  • “Inter-cluster DNS forwarding is not available and cannot be implemented”.

What we’re looking for:

  • A solution to enable “XDCR sync over NW 1” between the clusters.
  • A way to allow “external applications to connect over NW 2” to Couchbase.

Thanks in advance for any suggestions!