Enterprise
Uninstall
You can uninstall the HAProxy Enterprise 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.
-
To uninstall using Helm:
nixhelm uninstall -n haproxy-controller haproxy-kubernetes-ingressnixhelm uninstall -n haproxy-controller haproxy-kubernetes-ingressoutputtextrelease "haproxy-kubernetes-ingress" uninstalledoutputtextrelease "haproxy-kubernetes-ingress" uninstalled -
(Optional) Remove the HAProxy Technologies Helm repository:
nixhelm repo remove haproxytechnixhelm repo remove haproxytechoutputtext"haproxytech" has been removed from your repositoriesoutputtext"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:
-
Using the same YAML file you used for installation, delete all the resources associated with the controller.
nixkubectl delete -f haproxy-ingress.hapee.yamlnixkubectl delete -f haproxy-ingress.hapee.yamlExample outputnixnamespace "haproxy-controller" deletedserviceaccount "haproxy-ingress-service-account" deletedclusterrole.rbac.authorization.k8s.io "haproxy-ingress-cluster-role" deletedclusterrolebinding.rbac.authorization.k8s.io "haproxy-ingress-cluster-role-binding" deletedconfigmap "haproxy-kubernetes-ingress" deleteddeployment.apps "haproxy-ingress" deletedservice "haproxy-ingress" deletedExample outputnixnamespace "haproxy-controller" deletedserviceaccount "haproxy-ingress-service-account" deletedclusterrole.rbac.authorization.k8s.io "haproxy-ingress-cluster-role" deletedclusterrolebinding.rbac.authorization.k8s.io "haproxy-ingress-cluster-role-binding" deletedconfigmap "haproxy-kubernetes-ingress" deleteddeployment.apps "haproxy-ingress" deletedservice "haproxy-ingress" deleted -
(Optional) Delete the secret containing your credentials to the private HAProxy Docker registry that you created during installation, providing the namespace name with the
-n
option:nixkubectl delete secret regcred -n haproxy-controllernixkubectl delete secret regcred -n haproxy-controlleroutputtextsecret "regcred" deletedoutputtextsecret "regcred" deleted
The HAProxy Kubernetes Ingress Controller is now uninstalled.
Do you have any suggestions on how we can improve the content of this page?