Uninstalling Event Gateways

How to safely uninstall an Event Gateway instance.

Removing an Event Gateway from the Event Endpoint Management UI does not stop the Event Gateway instance. Follow the steps in this topic to stop the Event Gateway instance and remove it from your container environment.
Important: If you are removing the only gateway instance in a gateway group, then first unpublish any virtual topics are published to the gateway group.

Uninstalling a Docker Event Gateway

To remove a Docker Event Gateway:
  1. Run the following command to list the running containers:

    docker ps
    
  2. Locate the gateway in the list and stop the gateway container:

    docker stop <container_id>
    
  3. After the container is stopped, delete the gateway container and image:

    docker rm <gateway_container>
    
    docker rmi <gateway_image_name>
    
  4. Delete the Event Gateway from the Event Endpoint Management UI. See Managing Event Gateways.

Uninstalling a Kubernetes Deployment Event Gateway

To delete a Kubernetes Deployment Event Gateway instance:

  1. Delete the deployment:

    kubectl -n <namespace> delete deploy <gateway-deployment>
    
  2. Delete the secret associated with the gateway:

    kubectl -n <namespace> delete secret <gateway-secret>
    

    The secret has the same name as the gateway deployment.

  3. Delete any associated services and ingresses or routes that you created for your Event Gateway instance.

    kubectl -n <namespace> delete <service/ingress/route> <name>
  4. Delete the Event Gateway from the Event Endpoint Management UI. See Managing Event Gateways.

Uninstalling an operator-managed Event Gateway

To delete an operator-managed Event Gateway instance:

  1. Delete the gateway CR:
    kubectl -n <namespace> delete egw <gateway cr name>
  2. Delete the secret associated with the gateway:

    kubectl -n <namespace> delete secret <gateway-secret>
    

    The secret has the same name as the gateway CR.

  3. Delete any associated routes, ingresses, and services that you created for your Event Gateway instance.

    kubectl -n <namespace> delete <service/ingress/route> <name>
  4. Delete the Event Gateway from the Event Endpoint Management UI. See Managing Event Gateways.