当我尝试使用命令连接大三角帆时,我正在尝试运行 chaosmonkey 并出现以下错误chaosmonkey config {app-name}
。
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 是否期望密码采用加密格式chaosmonkey.toml
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 文件及其密码无关,因为我验证了 .p12 文件使用openssl pkcs12 -info -in {file.p12}
更新
我使用 .pem 文件和 .key 而不是 .p12 及其密码让它工作。