F.2 Delete Kubernetes Resources (if required)

This section describes how to delete Kubernetes resources or objects where NRF is deployed.

Caution:

  • Be sure before running the following commands as it deletes all the Kubernetes objects in the specified namespace.
  • If the RBAC and service account details are to be reused, then the below step of removing the kubernetes resources can be skipped.
  1. Run the following command to delete all the Kubernetes objects:
    kubectl delete all --all -n <release-namespace>
  2. Run the following command to delete all the configmaps:
    kubectl delete cm --all -n <release-namespace>
  3. Run the following command to delete the specific resources:
    kubectl delete <resource-type> <resource-name> -n <release-namespace>