Uninstall
If you no longer need your agentgateway environment, you can uninstall the control plane and all gateway proxies. You can also optionally remove related components such as Prometheus and sample apps.
Uninstall
Remove the agentgateway control plane and gateway proxies.
-
Get all HTTP routes in your environment.
kubectl get httproutes -A -
Remove each HTTP route.
kubectl delete -n <namespace> httproute <httproute-name> -
Get all reference grants in your environment.
kubectl get referencegrants -A -
Remove each reference grant.
kubectl delete -n <namespace> referencegrant <referencegrant-name> -
Get all gateways in your environment that are configured by the
agentgatewaygateway class.kubectl get gateways -A | grep agentgateway -
Remove each gateway.
kubectl delete -n <namespace> gateway <gateway-name> -
Uninstall the control plane.
-
Uninstall the agentgateway Helm release.
helm uninstall agentgateway -n agentgateway-system -
Delete the CRDs.
helm uninstall agentgateway-crds -n agentgateway-system -
Remove the
agentgateway-systemnamespace.kubectl delete namespace agentgateway-system -
Confirm that the CRDs are deleted.
kubectl get crds | grep agentgateway
-
-
Remove the Kubernetes Gateway API CRDs. If you installed a different version or channel of the Kubernetes Gateway API, update the following command accordingly.
kubectl delete -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.0/standard-install.yaml
Uninstall with ArgoCD
For ArgoCD installations, use the following steps to clean up your environment.
-
Port-forward the Argo CD server on port 9999.
kubectl port-forward svc/argocd-server -n argocd 9999:443 -
Open the Argo CD UI.
-
Log in with the
adminusername andgatewaypassword. -
Find the application that you want to delete and click x.
-
Select Foreground and click Ok.
-
Verify that the pods were removed from the
agentgateway-systemnamespace.kubectl get pods -n agentgateway-systemExample output:
No resources found in agentgateway-system namespace. -
Remove the
agentgateway-systemnamespace.kubectl delete namespace agentgateway-system -
Remove the
argocdnamespace.kubectl delete namespace argocd
-
Port-forward the Argo CD server on port 9999.
kubectl port-forward svc/argocd-server -n argocd 9999:443 -
Log in to the Argo CD UI.
argocd login localhost:9999 --username admin --password gateway --insecure -
Delete the agentgateway application.
argocd app delete agentgateway-helm --cascade --server localhost:9999 --insecureExample output:
Are you sure you want to delete 'agentgateway-helm' and all its resources? [y/n] y application 'agentgateway-helm' deleted -
Delete the agentgateway CRD application.
argocd app delete agentgateway-crds-helm --cascade --server localhost:9999 --insecureExample output:
Are you sure you want to delete 'agentgateway-crds-helm' and all its resources? [y/n] y application 'agentgateway-crds-helm' deleted -
Verify that the pods were removed from the
agentgateway-systemnamespace.kubectl get pods -n agentgateway-systemExample output:
No resources found in agentgateway-system namespace. -
Remove the
agentgateway-systemnamespace.kubectl delete namespace agentgateway-system -
Remove the
argocdnamespace.kubectl delete namespace argocd