How to Setup Haproxy Ingress Controller on Kubernetes
What is Kubernetes – Learn Kubernetes from Basics
How to Install Kubernetes on Linux (RedHat / CentOS)
How to Install Kubernetes On Ubuntu 16.04 LTS
How to Create Kubernetes Deployment, Services & Pods Using Kubectl
How to Create Kubernetes YAML for Deployment, Service & Pods
Kubernetes Volumes Explained with Examples
Kubernetes Persistent Volumes and Claims Explained
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.
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.
What is Kubernetes – Learn Kubernetes from Basics
How to Install Kubernetes on Linux (RedHat / CentOS)
How to Install Kubernetes On Ubuntu 16.04 LTS
How to Create Kubernetes Deployment, Services & Pods Using Kubectl
How to Create Kubernetes YAML for Deployment, Service & Pods
Kubernetes Volumes Explained with Examples
Kubernetes Persistent Volumes and Claims Explained
Keep practicing and have fun. Leave your comments if any.
Support Us: Share with your friends and groups.
Stay connected with us on social networking sites, Thank you.