https://registry.hub.docker.com/r/apacherocketmq/rocketmq-dashboard

    https://github.com/apache/rocketmq-dashboard

    1. ---
    2. kind: ConfigMap
    3. apiVersion: v1
    4. metadata:
    5. namespace: infrastructure-test
    6. name: configmap-rocketmq-console-ng-prod
    7. data:
    8. JAVA_OPTS: "-Drocketmq.namesrv.addr=192.168.13.70:9876;192.168.13.71:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
    9. ---
    10. kind: Service
    11. apiVersion: v1
    12. metadata:
    13. namespace: infrastructure-test
    14. name: service-rocketmq-console-ng-prod
    15. labels:
    16. app: service-rocketmq-console-ng-prod
    17. spec:
    18. ports:
    19. - protocol: TCP
    20. port: 8080
    21. targetPort: 8080
    22. selector:
    23. app: pod-rocketmq-console-ng-prod
    24. ---
    25. kind: Deployment
    26. apiVersion: apps/v1
    27. metadata:
    28. namespace: infrastructure-test
    29. name: deployment-rocketmq-console-ng-prod
    30. labels:
    31. app: deployment-rocketmq-console-ng-prod
    32. spec:
    33. replicas: 1
    34. selector:
    35. matchLabels:
    36. app: pod-rocketmq-console-ng-prod
    37. strategy:
    38. rollingUpdate:
    39. maxSurge: 1
    40. maxUnavailable: 1
    41. type: RollingUpdate
    42. template:
    43. metadata:
    44. labels:
    45. app: pod-rocketmq-console-ng-prod
    46. spec:
    47. containers:
    48. - image: bytest-harbor.ur.com.cn/base-image/rocketmq-dashboard:latest
    49. securityContext:
    50. privileged: true
    51. imagePullPolicy: IfNotPresent
    52. name: container-rocketmq-console-ng-prod
    53. ports:
    54. - protocol: TCP
    55. containerPort: 8080
    56. # 挂载configmap-apollo-portal-server相关配置
    57. envFrom:
    58. - configMapRef:
    59. name: configmap-rocketmq-console-ng-prod
    60. # 计算资源分配
    61. resources:
    62. # 初始请求资源
    63. requests:
    64. cpu: 0.5
    65. memory: 600Mi
    66. # 资源限制
    67. limits:
    68. cpu: 0.5
    69. memory: 1.5Gi
    70. readinessProbe:
    71. tcpSocket:
    72. port: 8080
    73. initialDelaySeconds: 60
    74. periodSeconds: 5
    75. livenessProbe:
    76. tcpSocket:
    77. port: 8080
    78. # 120s 内, server 未启动则重启 container
    79. initialDelaySeconds: 120
    80. periodSeconds: 15
    81. restartPolicy: Always
    82. ---
    83. #ingress
    84. apiVersion: networking.k8s.io/v1
    85. kind: Ingress
    86. metadata:
    87. name: rocketmq-console-ingress
    88. namespace: infrastructure-test
    89. spec:
    90. rules:
    91. - host: mq-test.ur.com.cn
    92. http:
    93. paths:
    94. - path: /
    95. pathType: Prefix
    96. backend:
    97. service:
    98. name: service-rocketmq-console-ng-prod
    99. port:
    100. number: 8080