If you no longer need your Gloo Gateway environment, you can uninstall Gloo Gateway. Uninstalling removes the control plane as well as all the gateway proxies. You can optionally remove related components such as Prometheus and sample apps.

Uninstall Gloo Gateway

Remove the Gloo Gateway control plane and gateway proxies.

  1. Get all HTTP routes in your environment.

      kubectl get httproutes -A
  2. Remove each HTTP route.

      kubectl delete httproute <httproute-name> <namespace>
  3. Get all reference grants in your environment.

      kubectl get referencegrants -A
  4. Remove each reference grant.

      kubectl delete referencegrant <referencegrant-name> <namespace>
  5. Get all gateways in your environment that are configured by the gloo-gateway gateway class.

      kubectl get gateways -A | grep gloo-gateway
  6. Remove each gateway.

      kubectl delete gateway <gateway-name> <namespace>
  7. Uninstall the Gloo Gateway release.

      helm uninstall gloo-gateway -n gloo-system
  8. Remove the gloo-system namespace.

      kubectl delete namespace gloo-system
  9. Remove the Kubernetes Gateway API custom resources.

      kubectl delete -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.0.0/standard-install.yaml

Uninstall optional components

Remove any optional components that you no longer need, such as sample apps.

  1. If you no longer need the Prometheus stack to monitor resources in your cluster, uninstall the release and delete the namespace.

      helm uninstall kube-prometheus-stack -n monitoring
    kubectl delete namespace monitoring
  2. Remove the httpbin sample app.

      kubectl delete namespace httpbin
  3. Remove the Petstore sample app.

      kubectl delete -f https://raw.githubusercontent.com/solo-io/gloo/v1.13.x/example/petstore/petstore.yaml