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

时间:2019-12-26 04:57:33

标签: rabbitmq kubernetes-helm

我试图按照文档here中的说明,通过设置变量“ definitions”在rabbitmq掌舵部署中创建虚拟主机,但我得到以下错误:

[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"
      }

1 个答案:

答案 0 :(得分:0)

这是json格式错误。 vhosts之后:|-必须为json格式。因此,名称也应放在引号之间。这将是最终结果:

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