Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
| Beide kanten vorige revisie Vorige revisie Volgende revisie | Vorige revisie | ||
|
installatie_handleidingen:mikrotik:ha-proxy [2025/09/21 12:59] abel [network connections] |
installatie_handleidingen:mikrotik:ha-proxy [2025/09/21 17:12] (huidige) abel [Persistent volumes location] |
||
|---|---|---|---|
| Regel 7: | Regel 7: | ||
| ===== network connections ===== | ===== network connections ===== | ||
| There are several ways to connect the HA-Proxy container to the network, here we chose to give it its own IP.\\ | There are several ways to connect the HA-Proxy container to the network, here we chose to give it its own IP.\\ | ||
| - | follow the instructions to create a [[installatie_handleidingen: | + | follow the instructions to create a [[installatie_handleidingen: |
| + | ===== Persistent volumes location ===== | ||
| + | For the persistent volume of the container we create a directory | ||
| + | < | ||
| + | /file | ||
| + | add type=directory name=/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== configuration file ===== | ||
| + | Start by creating the config file on your workstation, | ||
| + | |||
| + | < | ||
| + | global | ||
| + | daemon | ||
| + | maxconn 256 | ||
| + | |||
| + | defaults | ||
| + | mode http | ||
| + | timeout connect 5s | ||
| + | timeout client | ||
| + | timeout server | ||
| + | |||
| + | frontend http_in | ||
| + | bind *:80 | ||
| + | default_backend web_servers | ||
| + | |||
| + | backend web_servers | ||
| + | balance roundrobin | ||
| + | server srv1 10.100.10.103: | ||
| + | </ | ||
| + | |||
| + | upload this config file to the preveously crated location. | ||
| + | < | ||
| + | scp haproxy.cfg styx:/ | ||
| + | </ | ||
| + | |||
| + | ===== set container mount ===== | ||
| + | Now set the volume with the config file as a persistent volume mount in the container: | ||
| + | < | ||
| + | / | ||
| + | add name=HAPROXY_CONF dst=/ | ||
| + | </ | ||
| + | |||
| + | ===== deploy the container ===== | ||
| + | < | ||
| + | /container | ||
| + | add remote-image=library/ | ||
| + | </ | ||
| + | |||
| + | zoek het nummer van de containerdefinitie op: ''/ | ||
| + | en start dat nummer (in ons geval 0) | ||
| + | < | ||
| + | /container | ||
| + | start number=0 | ||
| + | </ | ||