Github webhook 无法使用 Spinnaker 连接到服务器

Github webhook unable to connect to server with Spinnaker

我正在关注 spinnaker codelab https://www.spinnaker.io/guides/tutorials/codelabs/appengine-source-to-prod/,但在 github webhook 集成方面遇到了问题。

从 github 我收到一条消息说 couldn't connect to server

我的 github 设置是:

Payload Url - http://<my-external-ip>:8089/webhooks/git/github
Content Type - application/json
Which events to trigger - just the push event
Active - true

我的 GCP 防火墙规则设置为:

Priority - 1000
Direction - Ingress
Action on match - Allow
Target tags - allow-github-webhook
Source filters (IP Ranges) - 192.30.252.0/22   185.199.108.0/22
Protocols and ports - tcp:8089

而且我已确保我的 Spinnaker VM 具有 network tags: allow-github-webhook

我正在使用 Spinnaker v. 1.0.1

是否有任何我遗漏的东西或我可以检查的任何日志以查看是否有任何地方发生错误?或者您建议尝试调试 webhook 为何不成功的任何其他建议?

我从 spinnaker 项目的贡献者那里得到了答案:https://github.com/spinnaker/spinnaker.github.io/issues/234

有人建议 运行 在 spinnaker 机器中添加以下内容,这使得 webhook 工作:

echo "host: 0.0.0.0" | tee ~/.hal/default/service-settings/echo.yml
sudo hal deploy apply