B Adding a Site to an Existing Deployment

This section describes the procedure to add a site to an existing Oracle Communications Cloud Native Core, Network Exposure Function (NEF) site.

Prerequisites

  • NEF connected to a cnDBTier is up and running. This is referred as Site-1 (CAPIF-1 and NEF-1).
  • The CAPIF, NEF, and cnDBTier versions used for Site-1 installation must be identified and same must be used for adding another site.

Adding a Site

  1. Install a new cnDBTier. This cnDBTier must act as a georedundant database to the cnDBTier in Site-1. For more information to install a cnDBTier, see Oracle Communications Cloud Native Core, cnDBTier User Guide.
  2. Verify the replication channel between the cnDBTier sites by sending the following request to the dbMonitor service of both the cnDBTier sites. The responses from both the cnDBTier sites must show the status of replication channel as up:
    curl http://<mysql-db-monitor-service>:8080/db-tier/status/replication/realtime
    Sample command:
    curl http://mysql-cluster-db-monitor-svc:8080/db-tier/status/replication/realtime
    Sample output:
    [{"localSiteName":"Site-1","remoteSiteName":"Site-2","replicationStatus":"UP","secondsBehindRemote": 0}]
  3. Install CAPIF on Site-2. For more information on installation procedure, see Installing CAPIF section.
  4. Perform the upgrade for NEF on Site-1 to add the details of CAPIF-2 in the ocnef-custom-values.yaml file.
    Sample configuration:
    publicKeyMonitorDelay: 15000
    capifDetails:
    		- capifInstanceId: f98b05e0-22d8-11ed-861d-0242ac120002
              type: local # this parameter would be used to populate the capif_instance_id column for existing records in upgrade to 22.4.0
    		  host: 10.122.123.123
    		  port: 8080
    		  scheme: http
    		  certificate:
    			secretName: certificate-secret
    			certificateName: tmp.cer
    			
    
    		- capifInstanceId: f98b05e0-22d8-11ed-861d-0242ac120003
              type: remote
    		  host: 10.122.123.223
    		  port: 8080
    		  scheme: http
    		  certificate:
    			secretName: certificate-secret
    			certificateName: tmp.cer
  5. Install NEF on Site-2 by providing the details about both the CAPIF instances in the ocnef-custom-values.yaml. For more information on installation procedure, see Installing NEF section.