使用 helm stable/rabbitmq-ha 在 rabbitmq 中定义虚拟主机时出错



我正在尝试通过设置变量"定义"在 rabbitmq helm 部署中创建 vhost,如此处文档中的说明,但我只是收到以下错误:

[error] <0.329.0> CRASH REPORT Process <0.329.0> with 0 neighbours exited with reason: {error,not_json} in application_master:init/4 line 138
[info] <0.43.0> Application rabbit exited with reason: {error,not_json}
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{error,not_json}}}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{error,not_json}}}}})

你知道哪一个是正确的格式吗?这是我使用的定义:

rabbitmq-ha:
definitions:
vhosts: |-
{
name: "/name"
}

这是json格式错误。在主机之后:|-必须是 json 格式。所以名字也应该在引号之间。这将是最终结果:

rabbitmq-ha:
definitions:
vhosts: |-
{
"name": "/name"
}

最新更新