运维八一 运维八一
首页
运维杂记
编程浅尝
周积跬步
专栏
生活
关于
收藏
  • 分类
  • 标签
  • 归档
Source (opens new window)

运维八一

运维,运维!
首页
运维杂记
编程浅尝
周积跬步
专栏
生活
关于
收藏
  • 分类
  • 标签
  • 归档
Source (opens new window)
  • 操作系统

  • 域名解析

  • 公有云

  • CI&CD

  • 数据库

  • 负载均衡&反向代理

  • 存储系统

  • 容器&容器编排

  • 批量管理

  • 邮件系统

  • 监控系统

  • Web服务

  • 虚拟化

  • 防火墙

  • 压测

  • 文件同步

  • 私有云

  • 日志系统

  • 代码仓库&版本管理

  • 安全审计

  • 远程拨号

  • 大数据

  • 统一认证

  • 消息队列

    • rabbitmq3_8部署
    • rabbitmq容器化部署
    • rabbitmq集群重启失败问题
  • Apollo

  • 运维杂记
  • 消息队列
lyndon
2022-10-08

rabbitmq容器化部署

apiVersion: v1
kind: Service
metadata:
  name: rabbitmq
  labels:
    app: rabbitmq
spec:
  type: NodePort
  ports:

   - name: http
     protocol: TCP
     port: 15672
     targetPort: 15672
     nodePort: 30372
   - name: amqp
     protocol: TCP
     port: 5672
     targetPort: 5672
     nodePort: 30272
   - name: mqtts
     protocol: TCP
     port: 8883
     targetPort: 8883
     nodePort: 30883
       selector:

    app: rabbitmq

---

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: rabbitmq
  labels:
    app: rabbitmq
spec:
  replicas: 1
  serviceName: rabbitmq
  selector:
    matchLabels:
      app: rabbitmq
  template:
    metadata:
      labels:
        app: rabbitmq
    spec:
      containers:
      - name: rabbitmq
        image: rabbitmq:3.8.15
        imagePullPolicy: IfNotPresent
        volumeMounts:
        - name: rabbitmq-conf
          mountPath: /etc/rabbitmq
        - name: rabbitmq-data
          mountPath: /var/lib/rabbitmq/mnesia
        - name: rabbitmq-log
          mountPath: /var/log/rabbitmq
      restartPolicy: Always
      volumes:
      - name: rabbitmq-conf
        hostPath:
          path: /data/rabbitmq
      - name: rabbitmq-data
        hostPath:
          path: /data/rabbitmq/mnesia
      - name: rabbitmq-log
        hostPath:
          path: /data/rabbitmq/log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
上次更新: 2022/10/08, 16:35:41
rabbitmq3_8部署
rabbitmq集群重启失败问题

← rabbitmq3_8部署 rabbitmq集群重启失败问题→

最近更新
01
ctr和crictl显示镜像不一致
03-13
02
alpine镜像集成常用数据库客户端
03-13
03
create-cluster
02-26
更多文章>
Theme by Vdoing | Copyright © 2015-2024 op81.com
苏ICP备18041258号-2
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式