我可以通过独立的
gerrit
(LB)从基于裸机的Kubernetes cluster
访问我们的HAProxy
网络。
目前我在
HAproxy
文件中有以下/etc/haproxy/haproxy.cfg
配置来访问集群gerrit服务。
frontend http-in
bind *:80
mode http
option forwardfor
default_backend gerrit-http
backend gerrit-http
mode http
option forwardfor
balance roundrobin
server Kworker1 192.168.1.11:80 check
server Kworker2 192.168.1.12:80 check
server Kworker3 192.168.1.13:80 check
frontend ssh-in
bind *:29418
mode tcp
default_backend gerrit-ssh
backend gerrit-ssh
mode tcp
server Kworker1 192.168.1.11:29418 check
server Kworker2 192.168.1.12:29418 check
server Kworker3 192.168.1.13:29418 check
但是当我尝试使用以下命令测试 gerrit ssh 连接时。它总是失败
$ ssh -p 29418 [email protected]
ssh_exchange_identification: Connection closed by remote host
我的 haproxy 配置有什么问题?我如何在 HAproxy(LB) 中使用 gerrit ssh 和 gerrit http?