Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. NetBackup™ Deployment Guide for Kubernetes Clusters
  3. Section IV. Maintenance
  4. Uninstalling
  5. Uninstalling Snapshot Manager from Kubernetes cluster
NetBackup™ Deployment Guide for Kubernetes Clusters

Uninstalling Snapshot Manager from Kubernetes cluster

When you uninstall Snapshot Manager from Kubernetes cluster, the Snapshot Manager related services are deleted from the cluster.

  1. Delete cpServer related parameters from environment.yaml file and apply it.

    # NOTE: Following steps does not remove flexsnap (Snapshot Manager) operator.
    OPERATOR_NAMESPACE="netbackup-operator-system"
    ENVIRONMENT_NAMESPACE="nbux"
    
    # Comment out / remove cpServer part from environment.yaml
  2. Following commands can be used to remove and disable the Snapshot Manager from NetBackup:

    kubectl apply -f environment.yaml -n $ENVIRONMENT_NAMESPACE sleep 10s

  3. Ensure that you get the uninstall message in flexsnap-operator operator log.

  4. To clean-up cpServer component, delete flexsnap specific persistent volumes (PVs), persistent volume claims (PVCs) and config maps. Note that these resources contain metadata of current cpServer installation and would be deleted.

    Use the following respective commands to delete these resources:

    kubectl delete cm flexsnap-conf nbuconf pdconf -n $ENVIRONMENT_NAMESPACE
    kubectl delete pvc data-flexsnap-rabbitmq-0 fluentd-pvc cloudpoint-pvc certauth-pvc -n $ENVIRONMENT_NAMESPACE
    kubectl delete pv $(kubectl get pv | grep flexsnap | awk  '{printf $1" " }')
    kubectl delete pv $(kubectl get pv | grep fluentd-pvc | awk  '{printf $1" " }')
    kubectl delete pv $(kubectl get pv | grep cloudpoint-pvc | awk  '{printf $1" " }')
    kubectl delete pv $(kubectl get pv | grep certauth-pvc | awk  '{printf $1" " }')
  5. NetBackup Snapshot Manager databases are present in nb-postgresql pod. Delete these databases manually.

    Use the following commands to exec into nb-postgresql pod, connect to the database and delete the flexsnap databases:

    kubectl exec -it nb-postgresql-0 -- bash
    psql "port=13787 dbname=postgres user=postgres sslmode=verify-full sslcert='/netbackup/postgresql/keys/server/tls.crt' sslkey='/netbackup/postgresql/keys/server/tls.key' sslrootcert=/netbackup/postgresql/keys/server/ca.crt"
     
    drop database alertservice with (force);
    drop database flexsnap with (force);
    drop database flexworkflow with (force);
    drop database identity_manager_service with (force);
    drop database kms with (force);
  6. NetBackup Snapshot Manager uses it's own pod (flexsnap-postgresql) to store data when NetBackup uses cloud native database.

    When flexsnap-postgresql pod is deployed, use the following command to delete the database pvc:

    kubectl delete pvc psql-pvc -n $ENVIRONMENT_NAMESPACE

    kubectl delete pv $(kubectl get pv | grep psql-pvc | awk '{printf $1" " }')

Feedback

Was this page helpful?
Previous

Uninstalling fluentbit using Helm charts

Next

Uninstalling MSDP Scalout from Kubernetes cluster

Feedback

Was this page helpful?