Category : haproxy

I have frontend/backend application I want to scale so I am using Docker Swarm. I understand how ingress routing mesh of docker swarm mode works, but I am confused about HAProxy coming into the picture. I would like for access point to be one host, meaning you can’t access the application from other hosts. Should ..

Read more

I want to connect Galera cluster from haproxy pod deployed in kubernetes. Docker file for the image. FROM haproxy:2.3 COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg haproxy.cfg File defaults log global mode tcp retries 10 timeout client 10000 timeout connect 100500 timeout server 10000 frontend mysql-router-service bind *:6446 mode tcp option tcplog default_backend galera_cluster_backend # MySQL Cluster BE configuration ..

Read more

The Problem: I’ve been following along with this article: https://dev.to/rgfindl/live-streaming-proxy-225b (https://github.com/rgfindl/live-streaming-server/tree/master/proxy), and have run into some issues with HAProxy. The proxy server, run on a docker container, runs a cron job every minute to regenerate a new haproxy config file that updates the one of the backend sections to account for any new backend servers ..

Read more

I have a some docker containers that I host on Windows Azure. I also have storage that I use for persistent data. Inside the storage I created this folder structure : acishare/haproxy/enduser and acishare/haproxy/promoter. In the code below, I want to mount acishare/haproxy/enduser as a volume inside the docker compose configuration: loadbalancer: image: haproxytech/haproxy-ubuntu:2.5 … ..

Read more

I am running my docker container using the security option –security-opt=no-new-privileges:true I see that my haproxy cannot bind to the privileged port 443 in my docker container although I have done so in my docker file RUN setcap CAP_NET_BIND_SERVICE=+eip /path/to/program I get the the following error [ALERT] 211/191324 (21) : Starting frontend application_traffic: cannot bind ..

Read more

I am running my docker container using the security option –security-opt=no-new-privileges:true I see that my haproxy cannot bind to the privileged port 443 in my docker container although I have done so in my docker file RUN setcap CAP_NET_BIND_SERVICE=+eip /path/to/program I get the the following error [ALERT] 211/191324 (21) : Starting frontend application_traffic: cannot bind ..

Read more

I have a plumber service and use dockercloud/haproxy for load balancing. I use docker-compose for running my Docker applications: docker-compose.yml version: ‘3’ services: plumber: image: registry.code.roche.com/tmbd/tsi-api:latest command: /plumber.R volumes: – ./plumber/plumber.R:/plumber.R restart: always lb: image: ‘dockercloud/haproxy:latest’ volumes: – /var/run/docker.sock:/var/run/docker.sock restart: always links: – plumber ports: – 80:80 It works fine with this configuration. Now I ..

Read more

I am trying to set ssl termination for redthis.app domain in haproxy 2.4.2 but getting the following error from haproxy container [ALERT] (1) : parsing [/usr/local/etc/haproxy/haproxy.cfg:4] : ‘bind *:443’ : unable to load private key from file ‘/etc/haproxy/ssl/gdredthis.app.pem.key’. ‘/etc/haproxy/ssl/gdredthis.app.pem.key’ is present but cannot be read or parsed’. Below is the sequence I tried, Setup Haproxy ..

Read more