How to Setup Haproxy Ingress Controller on Kubernetes

There are many projects that supports for ingress controllers like Nginx, Haproxy, Ambassador, Contour, Citrix, Gloo, Istio, Traefik, AWS, GCE, etc,.

This post will show you how to setup haproxy ingress controller on kubernetes cluster with step by step procedure. In the previous post, we explained about kubernetes ingress and how to setup nginx ingress controller.


Also You can Watch this Entire Tutorial video with more examples on our YouTube Channel. Make use of it.

Lets get started.

How to Setup Haproxy Ingress Controller on Kubernetes

Clone Haproxy Ingress Github Repository:

git clone https://github.com/haproxytech/kubernetes-ingress.git

Deploy the Controller:

kubectl apply -f kubernetes-ingress/deploy/haproxy-ingress.yaml

Verify the namespace, pods and services running for ingress controller:

kubectl get ns

You must have new namespace created for ingress ie haproxy-controller.

kubectl -n haproxy-controller get pods -o wide

All pods should be running. Also verify the service type.

kubectl -n haproxy-controller get svc

By default, haproxy uses nodeport service type, if you want to change it to LoadBalancer type, edit the deployment file "haproxy-ingress.yaml", change the service type and reapply it.

Once the ingress controller is configured, you can start creating ingress rules for your applications.

Also You can Watch this Entire Tutorial video with more examples on our YouTube Channel. Make use of it.

Hope you have got an idea how to setup haproxy ingress controller.

Also refer below related articles and checkout all tutorial videos for free on youtube.
Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.

إرسال تعليق

0 تعليقات