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:
nix
helm uninstall -n haproxy-controller haproxy-kubernetes-ingress
nix
helm uninstall -n haproxy-controller haproxy-kubernetes-ingress
outputtext
release "haproxy-kubernetes-ingress" uninstalled
outputtext
release "haproxy-kubernetes-ingress" uninstalled
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 kubectl delete -f deploy/haproxy-ingress.yamlnixkubectl delete kubectl delete -f deploy/haproxy-ingress.yamlExample outputnixnamespace "haproxy-controller" deletedserviceaccount "haproxy-kubernetes-ingress" deletedclusterrole.rbac.authorization.k8s.io "haproxy-kubernetes-ingress" deletedclusterrolebinding.rbac.authorization.k8s.io "haproxy-kubernetes-ingress" deletedconfigmap "haproxy-kubernetes-ingress" deleteddeployment.apps "haproxy-kubernetes-ingress" deletedservice "haproxy-kubernetes-ingress" deletedExample outputnixnamespace "haproxy-controller" deletedserviceaccount "haproxy-kubernetes-ingress" deletedclusterrole.rbac.authorization.k8s.io "haproxy-kubernetes-ingress" deletedclusterrolebinding.rbac.authorization.k8s.io "haproxy-kubernetes-ingress" deletedconfigmap "haproxy-kubernetes-ingress" deleteddeployment.apps "haproxy-kubernetes-ingress" deletedservice "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?