6 Uninstalling NRF

This chapter provides information about uninstalling Oracle Communications Cloud Native Core, Network Repository Function (NRF). NRF supports both standalone and georedundant deployment modes.

NRF uninstallation can occur in the following scenarios:

The uninstallation procedure must be performed based on the deployment model.

Note:

The uninstall procedure must be followed only if the NRF and its corresponding data in the database are no longer required. For scenarios where NRF must be uninstalled and reinstalled using the same data in the database, see Fault Recovery.

6.1 Uninstalling NRF in a Standalone Site

This section details the procedure for safely uninstalling a standalone site.

  1. Uninstalling NRF Using Helm

    To uninstall NRF deployed via Helm, use the Helm uninstall command specifying the NRF release name and namespace. This process ensures all associated NRF Helm-managed resources are removed cleanly, simplifying the uninstallation and reducing manual steps.

    For more details, see Uninstalling NRF Using Helm.

  2. Uninstall DBTier

    Uninstalling the DBTier involves stopping and removing all database-related components used by NRF. This may require executing Helm or kubectl commands depending on how the DBTier was deployed, ensuring all persistent volumes, services, and configuration files related to the database are properly deleted.

    For more details, see Oracle Communications Cloud Native Core, cnDBTier Installation, Upgrade, and Fault Recovery Guide.

  3. Remove Kubernetes resources

    To fully clean up the environment, remove any remaining Kubernetes resources associated with NRF and DBTier, such as deployments, services, config maps, and secrets. This step helps prevent resource leakage and maintains a tidy cluster.

    For more details, see Delete Kubernetes Resources (if required).

  4. Remove Kubernetes namespace

    As a final step, delete the Kubernetes namespace where NRF and DBTier were deployed. Removing the namespace will automatically delete all resources within it, completing the cleanup process and freeing up cluster resources.

    For more details, see Deleting Kubernetes Namespace (if required) .

6.2 Uninstalling NRF (Except the last site) When NRF is Deployed in a Georedundant Model

This section describes the procedure for uninstalling an NRF site, except for the last one, when NRF is deployed in a georedundant model.

Prerequisite: Divert all traffic from this NRF site that is being uninstalled to its mated sites.

  1. Remove uninstalled NRFs from the georedundancy options of the other sites

    Update the georedundancy configurations on all other sites to remove references to the NRFs that have been uninstalled.

    For more details, see Remove Uninstalled NRFs from the Georedundancy Options of the Other Sites.

  2. Uninstalling NRF using Helm

    To uninstall NRF deployed via Helm, use the Helm uninstall command specifying the NRF release name and namespace. This process ensures all associated NRF Helm-managed resources are removed cleanly, simplifying the uninstallation and reducing manual steps.

    For more details, see Uninstalling NRF Using Helm.

  3. Clear entries from the table corresponding to this site

    After uninstalling, remove all records from the database table related to this site to prevent orphaned data.

    Note:

    The cleanup from the database must be done using this site's NRF Instance Id only.

    For more details, see Remove the site specific data from the state and the Configuration Databases.

  4. Uninstall DBTier

    Uninstalling the DBTier involves stopping and removing all database-related components used by NRF. This may require executing Helm or kubectl commands depending on how the DBTier was deployed, ensuring all persistent volumes, services, and configuration files related to the database are properly deleted.

    If the corresponding cnDBTier must be uninstalled, see "Removing a Georedundant cnDBTier Cluster" section in Oracle Communications Cloud Native Core, cnDBTier User Guide.

6.3 Uninstallation of the Last Site of a Georedundant Deployment

This section describes the steps to uninstall the last remaining site in a georedundant NRF deployment.

For more details, see Uninstalling NRF in a Standalone Site.