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:
- Remove the Edge Gateway packages to remove
the Edge Gateway and its dependencies,
k3s
,k3s-selinux
, andresilient-IBM-jre
, as follows:sudo yum remove apphost --setopt=clean_requirements_on_remove=1 sudo yum remove k3s
- Clear the
k3s
network interfaces fromfirewalld
: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
- If there are no other interfaces in the "trusted" zone, clear port 443 from
firewalld
as follows:- Verify that there are no interfaces in the trusted
zone:
sudo firewall-cmd --zone=trusted --list-interfaces
- If the command did not return any interfaces,
run:
sudo firewall-cmd --permanent --zone=trusted --remove-port=443/tcp && sudo firewall-cmd --reload
- Verify that there are no interfaces in the trusted
zone:
- Use the following command to remove the
container-selinux
andcreaterepo
packages, only if they are not used by any other services. This command also removescreaterepo
dependencies,deltarpm
andpython-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.