Chaosmonkey无法与Spinnaker进行通信

时间:2018-06-07 18:33:37

标签: openssl spinnaker chaos

当我尝试使用命令chaosmonkey config {app-name}尝试连接大三角帆时,我试图运行chaosmonkey并出现以下错误。

http get failed at https://api.spinnaker.{company}.com:085/applications/chaosdemo?expand=false
github.com/Netflix/chaosmonkey/spinnaker.Spinnaker.Get
    /go/src/github.com/Netflix/chaosmonkey/spinnaker/config.go:32
github.com/Netflix/chaosmonkey/spinnaker.(*Spinnaker).Get
    <autogenerated>:1
github.com/Netflix/chaosmonkey/command.DumpConfig
    /go/src/github.com/Netflix/chaosmonkey/command/dumpconfig.go:27
github.com/Netflix/chaosmonkey/command.Execute
    /go/src/github.com/Netflix/chaosmonkey/command/chaosmonkey.go:327
main.main
    /go/src/github.com/netflix/chaosmonkey/cmd/chaosmonkey/main.go:35
runtime.main
    /usr/local/go/src/runtime/proc.go:198
runtime.goexit
    /usr/local/go/src/runtime/asm_amd64.s:2361# 

我使用.p12文件及其密码(用于p12证书)。密码未加密。即使我在decryptor

中没有更新默认chaosmonkey.toml,chaosmonkey也会以加密格式预期该密码

chaosmonkey.toml如下所示

[chaosmonkey]
enabled = true
schedule_enabled = true
leashed = true
accounts = ["qa-k8s-cluster"]
time_zone = "America/New_York"

[database]
host = "host"
name = "chaosmonkey"
user = "chaosmonkey"
encrypted_password = "password not encrypted"

[spinnaker]
endpoint = "https://api.spinnaker.{company}.com:085"
certificate = "/apps/chaosmonkey/client.p12"        # path to p12 file when using client-side tls certs
encrypted_password = "password - not encrypted" # password used for p12 certificate, encrypted by decryptor
user = "root" # user associated with terminations, sent in API call to terminate

任何有关解决此问题的帮助都将不胜感激

请注意

我不认为它与.p12文件及其密码有关,因为我使用openssl pkcs12 -info -in {file.p12}验证了.p12文件

更新

我使用.pem文件和.key代替.p12及其密码。

1 个答案:

答案 0 :(得分:0)

如用户所述,解决方案是使用SSH格式 .pem .key 文件,而不是 .p12 格式。 / p>

有关将Chaos Monkey与Spinnaker集成的更多详细信息,请访问以下网站中的Medium.com和OPSMX.com资源:

running-chaos-monkey-on-spinnaker Integrating Chaos Monkey with Spinnaker