Community

Uninstall

You can uninstall the HAProxy Kubernetes Ingress Controller in one of two ways, depending on which method you used for installation.

Uninstall with Helm Jump to heading

If you used Helm to install the ingress controller, you can use the helm uninstall command to uninstall it. You must provide the namespace the ingress controller belongs to (most likely haproxy-controller, or another name you provided as the namespace during installation) with the -n option.

  1. To uninstall using Helm:

    nix
    helm uninstall -n haproxy-controller haproxy-kubernetes-ingress
    nix
    helm uninstall -n haproxy-controller haproxy-kubernetes-ingress
    output
    text
    release "haproxy-kubernetes-ingress" uninstalled
    output
    text
    release "haproxy-kubernetes-ingress" uninstalled
  2. (Optional) Remove the HAProxy Technologies Helm repository:

nix
helm repo remove haproxytech
nix
helm repo remove haproxytech
output
text
"haproxytech" has been removed from your repositories
output
text
"haproxytech" has been removed from your repositories

Uninstall with kubectl Jump to heading

If you did not install the ingress controller with Helm, you can use kubectl delete to uninstall it:

  1. Using the same YAML file you used for installation, delete all the resources associated with the controller.

    nix
    kubectl delete -f deploy/haproxy-ingress.yaml
    nix
    kubectl delete -f deploy/haproxy-ingress.yaml
    Example output
    nix
    namespace "haproxy-controller" deleted
    serviceaccount "haproxy-kubernetes-ingress" deleted
    clusterrole.rbac.authorization.k8s.io "haproxy-kubernetes-ingress" deleted
    clusterrolebinding.rbac.authorization.k8s.io "haproxy-kubernetes-ingress" deleted
    configmap "haproxy-kubernetes-ingress" deleted
    deployment.apps "haproxy-kubernetes-ingress" deleted
    service "haproxy-kubernetes-ingress" deleted
    Example output
    nix
    namespace "haproxy-controller" deleted
    serviceaccount "haproxy-kubernetes-ingress" deleted
    clusterrole.rbac.authorization.k8s.io "haproxy-kubernetes-ingress" deleted
    clusterrolebinding.rbac.authorization.k8s.io "haproxy-kubernetes-ingress" deleted
    configmap "haproxy-kubernetes-ingress" deleted
    deployment.apps "haproxy-kubernetes-ingress" deleted
    service "haproxy-kubernetes-ingress" deleted

The HAProxy Kubernetes Ingress Controller is now uninstalled.

Do you have any suggestions on how we can improve the content of this page?