Uninstalling IBM Cyber Fraud by using CASE on Linux

You can uninstall an instance of IBM® Cyber Fraud from your cluster by using the Container Application Software for Enterprises (CASE). This procedure removes the IBM Cyber Fraud operator, custom resources, and associated components.

Before you begin

To complete this task, you must be a Linux cluster administrator.

Complete a backup before uninstallation.

Important:

Uninstalling IBM Cyber Fraud remove all application data and configurations that are associated with IBM Cyber Fraud. For more information about completing a backup, see Backing up and restoring on Linux.

Components removed during uninstallation

The uninstallation process removes the following components:

  • Remove the CyberFraud operator
  • Delete CyberFraud custom resources
  • Clean up resources in the specified namespace
  • Cleanup storage (if applicable)
  • Cleanup cert manager
  • Cleanup catalog sources (cyberfraud-operator-catalog and any owned by cyberfraud-operator)
  • Remove specified namespace

Components preserved during uninstallation

The uninstallation process does not remove the following components:

  • OLM or Linux infrastructure; such as K3s.
  • Storage infrastructure (rook-ceph)

Gather the information needed to uninstall IBM Cyber Fraud

Gather the information to successfully uninstall IBM Cyber Fraud.

Table 1. Information needed to uninstall IBM Cyber Fraud
Information needed Description
Namespace The namespace where IBM Cyber Fraud is installed. This is typicallycyberfraud unless you specified a different namespace during installation.
CASE Version The version of the IBM Cyber Fraud CASE that was used for installation. This should match the installed version.
Cluster Access Administrator access to the cluster.

Uninstalling IBM Cyber Fraud by using CASE on Linux

After you gather the required information, uninstall IBM Cyber Fraud from your Linux cluster.

Procedure

  1. Set the following environment variables with the installer image name and the image inventory by typing the following command.
    export CASE_NAME=ibm-cyberfraud && export CASE_VERSION=1.0.1
  2. Optional: If you have not already downloaded the CASE, download it by typing the following command.
    oc ibm-pak get $CASE_NAME --version $CASE_VERSION --disable-top-level-images-mode
    The CASE is saved to the ~/.ibm-pak/data/cases/$CASE_NAME/$CASE_VERSION directory.
  3. Log in to your Linux cluster.
    1. Export the kubeconfig file so you can access the cluster using kubectl.
      sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
    2. Edit the kubeconfig file using the following command.
      vim ~/.kube/config
    3. Replace server: https://127.0.0.1:6443 with your server IP or DNS name
      server: https://<K3S_SERVER_IP>:6443
  4. Extract the IBM Cyber Fraud CASE if not already extracted by typing the following command.
    tar -xf \
    ~/.ibm-pak/data/cases/$CASE_NAME/$CASE_VERSION/ibm-cyberfraud-$CASE_VERSION.tgz \
    -C ~/.ibm-pak/data/cases/$CASE_NAME/$CASE_VERSION
  5. Set the IBM Cyber Fraud namespace variable by typing the following command.
    export CYFR_NAMESPACE=cyberfraud
  6. Uninstall IBM Cyber Fraud by typing the following command.
    kubectl ibm-pak launch -t 1 \
    $CASE_NAME \
    --version $CASE_VERSION \
    --inventory ibmCyberFraudOperatorSetup --action uninstall --namespace $CYFR_NAMESPACE

    The following table describes the command arguments:

    Table 2. IBM Cyber Fraud uninstallation command arguments
    Argument Description
    --action Set to uninstall to remove IBM Cyber Fraud
    --namespace The namespace where IBM Cyber Fraud is installed
    Important: The uninstallation process can take several minutes to complete.

Results

The following message is displayed when uninstallation is complete:
[SUCCESS] CyberFraud Uninstallation Complete!

What to do next

After you uninstall IBM Cyber Fraud, you can optionally remove rook-ceph and K3s provisioning.