当前位置: 首页 > article >正文

k8s环境下rabbitmq安装社区插件:rabbitmq_delayed_message_exchange

怎么在k8s环境下的rabbitmq安装社区版插件:rabbitmq_delayed_message_exchange

在你的rabbit-value.yaml中加入以下行,然后使用helm重新安装(最好把pvc也删了重新安装(如果你的密码变化了的话) 减少出错概率)

## @param plugins List of default plugins to enable (should only be altered to remove defaults; for additional plugins use `extraPlugins`)
##
plugins: "rabbitmq_management rabbitmq_peer_discovery_k8s"

## @param queue_master_locator Changes the queue_master_locator setting in the rabbitmq config file
##
queue_master_locator: min-masters

## @param communityPlugins List of Community plugins (URLs) to be downloaded during container initialization
## Combine it with extraPlugins to also enable them.
##
communityPlugins: "https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v4.0.2/rabbitmq_delayed_message_exchange-4.0.2.ez"
## @param extraPlugins Extra plugins to enable (single string containing a space-separated list)
## Use this instead of `plugins` to add new plugins
##
extraPlugins: "rabbitmq_auth_backend_ldap rabbitmq_delayed_message_exchange"
## Clustering settings
##
helm install  my-rabbit-dev bitnami/rabbitmq -f rabbit-value.yaml -n yournamespace

在这里插入图片描述
过程中踩坑
1 rabbitmq_delayed_message_exchange是社区版的plugin 所以要在communityPlugins加入,而且这里要加入的是能直接下载的链接

communityPlugins: "https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v4.0.2/rabbitmq_delayed_message_exchange-4.0.2.ez"

在这里插入图片描述

如果不是下载地址而是网页链接 我安装过程中没报错 探针也过了,但是可以去容器的/opt/bitnami/rabbitmq/plugins
目录下查看,根本没有这个插件。

2 我一开始是把他当正常插件使用了
只写了extraPlugins,没在communityPlugins写内容,会报错:

cannot_read_enabled_plugins_file,"/opt/bitnami/rabbitmq/etc/rabbitmq/enabled_plugins

{1,erl_parse,"bad term"}},{rabbit,start,[normal,[]]}}


readiness probe failed: % total % received % xferd average speed time time time current dload upload total spent left speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) failed to connect to 127.0.0.1 port 15672 after 0 ms: couldn't connect to server

等一些列奇怪的错误,原因应该就是rabbitmq_delayed_message_exchange 找不到 也没在communityPlugins那里添加,

communityPlugins: ""
## @param extraPlugins Extra plugins to enable (single string containing a space-separated list)
## Use this instead of `plugins` to add new plugins
##
extraPlugins: "rabbitmq_auth_backend_ldap rabbitmq_delayed_message_exchange"

要在communityPlugins那里加上下载地址 同时在extraPlugins 加上 以启用他 其实仔细读注释 人家早就说了 Combine it with extraPlugins to also enable them.

## @param communityPlugins List of Community plugins (URLs) to be downloaded during container initialization
## Combine it with extraPlugins to also enable them.
##
communityPlugins: "https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v4.0.2/rabbitmq_delayed_message_exchange-4.0.2.ez"
## @param extraPlugins Extra plugins to enable (single string containing a space-separated list)
## Use this instead of `plugins` to add new plugins
##
extraPlugins: "rabbitmq_auth_backend_ldap rabbitmq_delayed_message_exchange"
## Clustering settings

参考:stackoverflow
github
rabbitmq community plugin

https://artifacthub.io/packages/helm/bitnami/rabbitmq/15.0.3


http://www.kler.cn/a/378217.html

相关文章:

  • 【dvwa靶场:XSS系列】XSS (DOM) 低-中-高级别,通关啦
  • 【6G 需求与定义】ITU(国际电联)对全球6G标准的愿景
  • Java栈和队列的快速入门
  • 【P2-9】ESP8266 WIFI模块在STA模式下作为TCP客户端上电自动进入透传数据模式
  • C语言 -- qsort的简单使用
  • 深入探讨 Jenkins 中 HTML 格式无法正常显示的现象及解决方案
  • 施耐德EcoStruxure Machine SCADA Expert(EMSE)ModbusTcp通讯(二十二)
  • Linux系统安全配置
  • Javaweb梳理8——数据库设计
  • Servlet 3.0 新特性全解
  • 数据库作业5
  • 轻量数据持久化 shelve | sqlite3
  • AI风险及数据合规问题
  • js 期约到底是什么?
  • Ubuntu 系统Python环境管理(全、简)
  • Java项目实战II基于Spring Boot的文理医院预约挂号系统的设计与实现(开发文档+数据库+源码)
  • 全球首个国家级别的数据库CAB又在上海召开了!
  • C++之多态的深度剖析(2)
  • 砥砺十年风雨路,向新而行创新程丨怿星科技十周年庆典回顾
  • 【MySQL】存储引擎
  • 基于深度学习的智能交通信号控制
  • uniapp编译多端项目App、小程序,input框键盘输入后
  • 半成品 贪吃蛇项目
  • Linux软硬链接
  • C++ 优先算法 —— 查找总价格为目标值的两个商品(双指针)
  • 八、MapReduce 大规模数据处理深度剖析与实战指南