代码拉取完成,页面将自动刷新
同步操作将从 明蓝皓月/k8s-rocketmq 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
---
kind: ConfigMap
apiVersion: v1
metadata:
namespace: rocketmq
name: configmap-rocketmq-console-ng-prod
data:
JAVA_OPTS: "-Drocketmq.namesrv.addr=statefulset-rocketmq-namesrv-prod-0.service-rocketmq-namesrv-prod.rocketmq:9876;statefulset-rocketmq-namesrv-prod-1.service-rocketmq-namesrv-prod.rocketmq:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
---
kind: Service
apiVersion: v1
metadata:
namespace: rocketmq
name: service-rocketmq-console-ng-prod
labels:
app: service-rocketmq-console-ng-prod
spec:
externalIPs:
- 172.21.88.11 #这是我的一台node的ip
ports:
- protocol: TCP
port: 8080
targetPort: 8080
nodePort: 30018
selector:
app: pod-rocketmq-console-ng-prod
type: NodePort
---
kind: Deployment
apiVersion: apps/v1
metadata:
namespace: rocketmq
name: deployment-rocketmq-console-ng-prod
labels:
app: deployment-rocketmq-console-ng-prod
spec:
# 1 个实例
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: styletang/rocketmq-console-ng
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: 1Gi
# 资源限制
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
dnsPolicy: ClusterFirst
restartPolicy: Always
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。