Uninstalling the App Host

Perform the following procedures to uninstall the App Host .

Before uninstalling the App Host software, identify the App Host instances provided by this system and then delete them from the SOAR Platform. See the Managing App Hosts topic in the System Administrator Guide for details. If you are unsure which App Host instances are on the system, you can enter the following command to see a list of names:
sudo kubectl get namespaces -L "apps.isc.ibm.com/apphost-name"

If you have the virtual appliance of App Host, you uninstall the App Host by deleting the App Host OVA. There are no other steps to complete.

If you have the standalone version of the App Host, perform the following procedure:
  1. Remove the App Host packages to remove the App Host and its dependencies, k3s, k3s-selinux and resilient-IBM®-jre, as follows:
    sudo yum remove apphost --setopt=clean_requirements_on_remove=1
    sudo yum remove k3s
  2. Clear the k3s network interfaces from firewalld:
    sudo firewall-cmd --permanent --zone=trusted --remove-interface=cni0 &&
    sudo firewall-cmd --permanent --zone=trusted --remove-interface=flannel.1 &&
    sudo firewall-cmd --permanent --zone=trusted --remove-port=6443/tcp &&
    sudo firewall-cmd --permanent --zone=trusted --remove-port=10250/tcp
    sudo firewall-cmd --reload &&
    sudo systemctl restart firewalld
  3. If there are no other interfaces in the "trusted" zone, clear port 443 from firewalld as follows:
    1. Verify that there are no interfaces in the trusted zone:
      sudo firewall-cmd --zone=trusted --list-interfaces
    2. If the command did not return any interfaces, run:
      sudo firewall-cmd --permanent --zone=trusted --remove-port=443/tcp &&
      sudo firewall-cmd --reload
  4. Use the following command to remove the container-selinux and createrepo packages, only if they are not used by any other services. This command also removes createrepo dependencies, deltarpm and python-delta rpm, if they are unused.
    Important: Do not complete this step if the App Host is installed on the same system as the SOAR Platform.
    sudo yum remove container-selinux &&
    sudo yum remove createrepo --setopt=clean_requirements_on_remove=1

The App Host software is uninstalled.