Uninstalling Edge Gateway

This section provides the information to uninstall the Edge Gateway.

Before you uninstall the Edge Gateway software, identify the Edge Gateway instances that are provided by this system and then delete them from the application. If you are unsure which Edge Gateway 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 application of Edge Gateway, you uninstall the Edge Gateway by deleting the Edge Gateway OVA. There are no other steps to perform.

If you have the stand-alone version of the Edge Gateway, complete the following procedure:
  1. Remove the Edge Gateway packages to remove the Edge Gateway 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.
    sudo yum remove container-selinux &&
    sudo yum remove createrepo --setopt=clean_requirements_on_remove=1

The Edge Gateway software is uninstalled.