在Docker HTTP运行状况检查上运行的Consul返回“对等连接重置”

We are running consul through docker and using the HTTP health checks to a URL (https://10.1.24.68:5012/status) with a self-signed certificate. However, I get the following error:

2016/06/10 10:29:42 [WARN] agent: http request failed 'https://10.1.24.68:5012/status': Get https://10.1.24.68:5012/status: read tcp 10.3.2.11:55549->10.1.24.68:5012: read: connection reset by peer

It works as well when we use the Script health check with the wget command but this is not ideal. This is the line of code in Consul throwing the above error.

When running the health check to a HTTP URL (http://localhost:5012/status) it works. Could this be a certificate issue? I've added our certificate to both /etc/ssl/certs/ca-certificates.crt and /usr/share/local/ca-certificates.crt.

Halp!

duanbo5230
duanbo5230 根据40行:支持五种类型:脚本,HTTP,TCP,Docker和TTL没有“HTTPS”类型。
大约 4 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问