📕
Guides pratiques
  • Guides pratiques
  • Laravel
    • Middlewares
    • Auth
      • RegisterController
      • LoginController
  • MicroK8s
    • Samba server (Linux)
    • Samba client (Linux)
  • Kubernetes
    • Infrastructure
    • HAProxy
Powered by GitBook
On this page

Was this helpful?

  1. Kubernetes

HAProxy

Be careful to always indent HAProxy configuration with tabs!

Example (frontend/backend) configuration (here cookies are just for tests purpose):

frontend f.8082
        bind :8082
        default_backend b.8082

backend b.8082
        balance roundrobin
        http-response   set-header      X-Server        %s
        http-response   set-header      Set-Cookie      server=%s
        server kube-1   10.0.3.101:8082 check
        server kube-2   10.0.0.187:8082 check
        server kube-3   10.0.0.204:8082 check

Edit and apply configuration:

sudo nano /etc/haproxy/haproxy.cfg
sudo service haproxy restart

PreviousInfrastructure

Last updated 3 years ago

Was this helpful?