Kubernetes activemq系列| k8s 部署activemq artemis

一、ActiveMQ Artemis介绍

Apache ActiveMQ Artemis 是一个高性能的开源消息代理,它完全符合 Java Message Service (JMS) 2.0 规范,并支持多种通信协议,包括 AMQP、MQTT、STOMP 和 OpenWire 等。ActiveMQ Artemis 由 Apache Software Foundation 开发和维护,旨在提供可靠的消息传递解决方案,适用于各种异步通信场景。

bin- 运行 ActiveMQ Artemis 所需的二进制文件和脚本。

examples- 各种例子。

lib- 运行 ActiveMQ Artemis 所需的 jar 和库

schema- 用于验证 ActiveMQ Artemis 配置文件的 XML 模式

web- 代理运行时加载 Web 上下文的文件夹。

api- api 文档放在 web 文件夹下。

user-manual- 用户手册位于 web 文件夹下。

二、k8s 部署activemq artemis

官方镜像地址

https://hub.docker.com/r/apache/activemq-artemis/tags

yaml 复制代码
apiVersion: v1
kind: Service
metadata:
  name: nodeport-activemq
spec:
  selector:
    app: activemq
  ports:
    - port: 8161
      targetPort: 8161
      nodePort: 30066   
      name: admin
      protocol: TCP
    - port: 61616
      targetPort: 61616
      nodePort: 30067
      protocol: TCP
      name: tcp  
    - port: 1883
      targetPort: 1883
      nodePort: 30068
      protocol: TCP
      name: tcp2 
  type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: deploy-activemq
spec:
  replicas: 1
  selector:
    matchLabels:
      app: activemq
  template:
    metadata:
      labels:
        app: activemq
    spec:
      nodeName: k8s-work01
      containers:
      - name: activemq
        image: apache/activemq-artemis:latest
        ports:
          - containerPort: 8161  #web端口
            protocol: TCP
          - containerPort: 61616  #服务端端口
            protocol: TCP
          - containerPort: 1883  #MQTT端口
            protocol: TCP

AMQP端口:默认为5672端口,用于AMQP(高级消息队列协议)的通信。

OpenWire端口:默认为61616端口,用于OpenWire协议的通信,OpenWire是ActiveMQ自身的二进制协议。

STOMP端口:默认为61613端口,用于STOMP(简单文本协议)的通信。

HornetQ Core端口:默认为5445端口,用于HornetQ Core协议的通信。

Web管理端口:默认为8161端口,用于访问Web管理控制台。

JMX端口:默认为1099端口,用于Java管理扩展的远程管理。

MQTT端口:端口1883通常用于MQTT的非加密通信,而端口8883通常用于MQTT的加密通信(通过TLS/SSL)。

持续更新中关注不迷糊。。。

相关推荐
奋斗的老史1 天前
25年Docker镜像无法下载的四种对策
docker·容器·eureka
chillxiaohan1 天前
Docker学习记录
学习·docker·容器
柯南二号1 天前
【后端】Docker 常用命令详解
服务器·nginx·docker·容器
新鲜萝卜皮1 天前
容器内运行的进程,在宿主机的top命令中可以显示吗?
容器
容器魔方1 天前
Karmada v1.15 版本发布!多模板工作负载资源感知能力增强
云原生·容器·云计算
容器魔方1 天前
全栈AI驱动!华为云云容器引擎CCE智能助手焕新升级
云原生·容器·云计算
13线1 天前
Windows+Docker一键部署CozeStudio私有化,保姆级
docker·容器·开源
0wioiw01 天前
Docker(②创造nginx容器)
docker·容器
菜鸟IT胡1 天前
docker更新jar包,懒人执行脚本
运维·docker·容器
天道有情战天下2 天前
ClickHouse使用Docker部署
clickhouse·docker·容器