User Tools

Site Tools


решение_haproxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
решение_haproxy [2024/03/04 09:22]
val
решение_haproxy [2024/03/19 10:09]
val
Line 8: Line 8:
 gate# apt install haproxy gate# apt install haproxy
  
-gate# cat gowebd.crt wild.key > /​etc/​ssl/​private/​wild.crtkey+gate# cat wild.crt wild.key > /​etc/​ssl/​private/​wild.crtkey 
 +gate# ###cat gowebd.crt gowebd.key > /​etc/​ssl/​private/​gowebd.crtkey
 gate# ###cat keycloak.crt keycloak.key > /​etc/​ssl/​private/​keycloak.crtkey gate# ###cat keycloak.crt keycloak.key > /​etc/​ssl/​private/​keycloak.crtkey
  
Line 42: Line 43:
     balance ​    ​roundrobin     balance ​    ​roundrobin
  
-    server ​ kube1 kube2:80 check+    server ​ kube1 kube1:80 check
     server ​ kube2 kube2:80 check     server ​ kube2 kube2:80 check
     server ​ kube3 kube3:80 check     server ​ kube3 kube3:80 check
Line 57: Line 58:
 # service haproxy restart # service haproxy restart
  
 +# tail -f /​var/​log/​haproxy.log
 # journalctl -f | grep proxy # journalctl -f | grep proxy
  
-haproxy# curl http://​localhost/​ -H "Host: gowebd.corpX.un"​+haproxy# curl https://​localhost/​ -H "Host: gowebd.corpX.un" ​-k
 </​code>​ </​code>​
  
решение_haproxy.txt · Last modified: 2024/04/09 11:27 by val