https://registry.hub.docker.com/r/apacherocketmq/rocketmq-dashboard
https://github.com/apache/rocketmq-dashboard
---
kind: ConfigMap
apiVersion: v1
metadata:
namespace: infrastructure-test
name: configmap-rocketmq-console-ng-prod
data:
JAVA_OPTS: "-Drocketmq.namesrv.addr=192.168.13.70:9876;192.168.13.71:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
---
kind: Service
apiVersion: v1
metadata:
namespace: infrastructure-test
name: service-rocketmq-console-ng-prod
labels:
app: service-rocketmq-console-ng-prod
spec:
ports:
- protocol: TCP
port: 8080
targetPort: 8080
selector:
app: pod-rocketmq-console-ng-prod
---
kind: Deployment
apiVersion: apps/v1
metadata:
namespace: infrastructure-test
name: deployment-rocketmq-console-ng-prod
labels:
app: deployment-rocketmq-console-ng-prod
spec:
replicas: 1
selector:
matchLabels:
app: pod-rocketmq-console-ng-prod
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: pod-rocketmq-console-ng-prod
spec:
containers:
- image: bytest-harbor.ur.com.cn/base-image/rocketmq-dashboard:latest
securityContext:
privileged: true
imagePullPolicy: IfNotPresent
name: container-rocketmq-console-ng-prod
ports:
- protocol: TCP
containerPort: 8080
# 挂载configmap-apollo-portal-server相关配置
envFrom:
- configMapRef:
name: configmap-rocketmq-console-ng-prod
# 计算资源分配
resources:
# 初始请求资源
requests:
cpu: 0.5
memory: 600Mi
# 资源限制
limits:
cpu: 0.5
memory: 1.5Gi
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 60
periodSeconds: 5
livenessProbe:
tcpSocket:
port: 8080
# 120s 内, server 未启动则重启 container
initialDelaySeconds: 120
periodSeconds: 15
restartPolicy: Always
---
#ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: rocketmq-console-ingress
namespace: infrastructure-test
spec:
rules:
- host: mq-test.ur.com.cn
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: service-rocketmq-console-ng-prod
port:
number: 8080