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)。

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

相关推荐
rider1891 小时前
【9】搭建k8s集群系列(二进制部署)之安装work-node节点组件(kube-proxy)和网络组件calico
java·容器·kubernetes
曼岛_5 小时前
开源 LLM 应用开发平台 Dify 全栈部署指南(Docker Compose 方案)
docker·容器·开源
树下一少年7 小时前
ansible+docker+docker-compose快速部署4节点高可用minio集群
docker·容器·ansible·docker-compose·minio集群
Connie145110 小时前
在 Kubernetes (k8s) 中,apiserver 的 IIP和 VIP的区别
云原生·容器·kubernetes
葟雪儿13 小时前
Docker常用命令
linux·服务器·spring cloud·docker·微服务·容器
爬台阶的蚂蚁15 小时前
搭建docker registry私服,并且支持https推送
docker·容器·https
张家宝683715 小时前
Containerd学习
后端·容器
会游泳的石头15 小时前
探索现代网络技术:从负载均衡到 Kubernetes
运维·kubernetes·负载均衡
容器魔方17 小时前
KubeEdge边缘设备管理系列(五):Mapper-Framework设备数据写入
云原生·容器·云计算
穷儒公羊18 小时前
第一部分——Docker篇 第一章 Docker容器
运维·docker·云原生·容器