【发布时间】:2018-06-05 13:21:45
【问题描述】:
我目前有一个使用 443 前端、后端和运行状况检查的 HTTPS 负载均衡器设置,它为单个主机 nginx 实例提供服务。
当通过浏览器直接导航到主机时,页面会使用有效的 SSL 证书正确加载。
尝试通过负载平衡器 IP 访问站点时,我收到 502 - 服务器错误消息。我检查了 Google 日志,发现负载均衡器出现“failed_to_pick_backend”错误。我还注意到它没有通过健康检查。
一些挖掘将我带到这两个链接:https://cloudplatform.googleblog.com/2015/07/Debugging-Health-Checks-in-Load-Balancing-on-Google-Compute-Engine.html
https://github.com/coreos/bugs/issues/1195
问题 #1 - 不确定 google-address-manager 是否在服务器上运行 (RHEL 7)。我在 路线。已安装 Google SDK。这是 Google 提供的图片 如果我在控制台中更新 IP 地址,它也会更新 主人。如何检查 google-address-manager 是否正在运行 RHEL7?
[root@server]# ip route ls table local type local scope host
10.212.2.40 dev eth0 proto kernel src 10.212.2.40
127.0.0.0/8 dev lo proto kernel src 127.0.0.1
127.0.0.1 dev lo proto kernel src 127.0.0.1
所有谷歌服务的输出
[root@server]# systemctl list-unit-files
google-accounts-daemon.service enabled
google-clock-skew-daemon.service enabled
google-instance-setup.service enabled
google-ip-forwarding-daemon.service enabled
google-network-setup.service enabled
google-shutdown-scripts.service enabled
google-startup-scripts.service enabled
问题 #2:未收到 200 OK 响应。证书有效 在 LB 和服务器上也是如此。当对着卷曲运行时 应用服务器 我收到此响应。
root@server.com curl -I https://app-server.com
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
想法?
【问题讨论】:
标签: ssl nginx google-cloud-platform google-compute-engine rhel7