Différences
Ci-dessous, les différences entre deux révisions de la page.
veilletechno:kubernetes:ingress:haproxy [2020/11/07 20:16] – créée madko | veilletechno:kubernetes:ingress:haproxy [2020/11/08 17:33] (Version actuelle) – madko | ||
---|---|---|---|
Ligne 42: | Ligne 42: | ||
</ | </ | ||
- | |||
Le port d' | Le port d' | ||
Ligne 53: | Ligne 52: | ||
</ | </ | ||
+ | |||
+ | Pour acceder depuis l' | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # Example configuration for a possible web application. | ||
+ | # full configuration options online. | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Global settings | ||
+ | # | ||
+ | global | ||
+ | # to have these messages end up in / | ||
+ | # need to: | ||
+ | # | ||
+ | # 1) configure syslog to accept network log events. | ||
+ | # by adding the ' | ||
+ | # / | ||
+ | # | ||
+ | # 2) configure local2 events to go to the / | ||
+ | # file. A line like the following can be added to | ||
+ | # / | ||
+ | # | ||
+ | # local2.* | ||
+ | # | ||
+ | log | ||
+ | |||
+ | chroot | ||
+ | pidfile | ||
+ | maxconn | ||
+ | user haproxy | ||
+ | group | ||
+ | daemon | ||
+ | |||
+ | # turn on stats unix socket | ||
+ | stats socket / | ||
+ | |||
+ | # | ||
+ | # common defaults that all the ' | ||
+ | # use if not designated in their block | ||
+ | # | ||
+ | defaults | ||
+ | mode http | ||
+ | log | ||
+ | option | ||
+ | option | ||
+ | option http-server-close | ||
+ | option forwardfor | ||
+ | option | ||
+ | retries | ||
+ | timeout http-request | ||
+ | timeout queue 1m | ||
+ | timeout connect | ||
+ | timeout client | ||
+ | timeout server | ||
+ | timeout http-keep-alive 10s | ||
+ | timeout check 10s | ||
+ | maxconn | ||
+ | |||
+ | # | ||
+ | # main frontend which proxys to the backends | ||
+ | # | ||
+ | frontend | ||
+ | default_backend | ||
+ | |||
+ | frontend https-front | ||
+ | bind *:443 transparent | ||
+ | mode tcp | ||
+ | default_backend | ||
+ | |||
+ | # | ||
+ | # static backend for serving up images, stylesheets and such | ||
+ | # | ||
+ | backend static | ||
+ | balance | ||
+ | server | ||
+ | |||
+ | # | ||
+ | # round robin balancing between the various backends | ||
+ | # | ||
+ | backend http-backend | ||
+ | balance | ||
+ | server | ||
+ | server | ||
+ | server | ||
+ | |||
+ | backend https-backend | ||
+ | mode tcp | ||
+ | balance | ||
+ | server | ||
+ | server | ||
+ | server | ||
+ | |||
+ | </ | ||
+ | |||