RocketMQ介绍

https://developer.aliyun.com/article/135384

原本的docker-compose.yml文件

  1. version: '3.5'
  2. services:
  3. rmqnamesrv:
  4. image: foxiswho/rocketmq:server
  5. container_name: rmqnamesrv
  6. ports:
  7. - 9876:9876
  8. volumes:
  9. - ./logs:/opt/logs
  10. - ./store:/opt/store
  11. networks:
  12. rmq:
  13. aliases:
  14. - rmqnamesrv
  15. rmqbroker:
  16. image: foxiswho/rocketmq:broker
  17. container_name: rmqbroker
  18. ports:
  19. - 10909:10909
  20. - 10911:10911
  21. volumes:
  22. - ./logs:/opt/logs
  23. - ./store:/opt/store
  24. - ./conf/broker.conf:/etc/rocketmq/broker.conf
  25. environment:
  26. NAMESRV_ADDR: "rmqnamesrv:9876"
  27. JAVA_OPTS: " -Duser.home=/opt"
  28. JAVA_OPT_EXT: "-server -Xms256m -Xmx256m -Xmn256m"
  29. command: mqbroker -c /etc/rocketmq/broker.conf
  30. depends_on:
  31. - rmqnamesrv
  32. networks:
  33. rmq:
  34. aliases:
  35. - rmqbroker
  36. rmqconsole:
  37. image: styletang/rocketmq-console-ng
  38. container_name: rmqconsole
  39. ports:
  40. - 8899:8080
  41. environment:
  42. JAVA_OPTS: "-Drocketmq.namesrv.addr=rmqnamesrv:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
  43. depends_on:
  44. - rmqnamesrv
  45. networks:
  46. rmq:
  47. aliases:
  48. - rmqconsole
  49. networks:
  50. rmq:
  51. name: rmq
  52. driver: bridge

rocketmq安装-nameserver

kubesphere 安装rocketmq - 图1

kubesphere 安装rocketmq - 图2

kubesphere 安装rocketmq - 图3

kubesphere 安装rocketmq - 图4

kubesphere 安装rocketmq - 图5

为了和docker-compose的名称一样,可以删掉服务里的随机名称,然后新建 kubesphere 安装rocketmq - 图6 新建服务->负载名称 kubesphere 安装rocketmq - 图7 kubesphere 安装rocketmq - 图8 有了服务名字,就可以通过这个名字供broker访问了 kubesphere 安装rocketmq - 图9

rocketmq安装-broker

创建broker配置字典 kubesphere 安装rocketmq - 图10 kubesphere 安装rocketmq - 图11 创建工作负载 kubesphere 安装rocketmq - 图12 kubesphere 安装rocketmq - 图13 挂载字典 kubesphere 安装rocketmq - 图14

rocketmq安装-consul

第三方服务可以部署到工作负载的部署里 kubesphere 安装rocketmq - 图15 kubesphere 安装rocketmq - 图16 kubesphere 安装rocketmq - 图17 kubesphere 安装rocketmq - 图18

暴漏可视化界面端口号:工作负载

kubesphere 安装rocketmq - 图19 kubesphere 安装rocketmq - 图20 kubesphere 安装rocketmq - 图21