Skip to main content

Deploy HAProxy

ol lab tutorial ol-podman
Table of Contents


🌙 Lab

🗒 Tutorial


HAProxy is a well known, and widely used, open source solution delivering load balancing and proxy services for both HTTP (Layer 7) and TCP (Layer 4) which is achieved by spreading incoming request across multiple servers. For more details of the services that HAProxy does and does not provide please refer to the upstream documentation. HAProxy can be installed locally on Oracle Linux, or run as a container using Podman. This lab describes how to use HAProxy with Podman.

Clarification: This document follows the long established custom which suggests that the term “HAProxy” is used to represent the product, whereas “haproxy” is used to represent the executable. Although many other sources use these forms interchangeably.


This lab shows how to:

  • Use HAProxy as a Podman-based container
  • Configure a simple deployment using three back-end servers
  • Confirm the deployment runs as expected

Note: The steps provided do not include how to configure HAProxy to use certificates. Therefore its recommended for non-production purposes or an internal/air-gapped environment.


Four systems with Oracle Linux and Podman installed, whose responsibilities are divided like this:

Server NameRole/Purpose
ol-serverHosts HAProxy load balancer
web01, web02, web03Hosts the web application