用rocketmq-operator部署rocketmq集群4-console部署

  sre


用rocketmq-operator部署rocketmq集群1-operator部署
用rocketmq-operator部署rocketmq集群2-nameserver部署
用rocketmq-operator部署rocketmq集群3-broker部署
用rocketmq-operator部署rocketmq集群4-console部署

Console直接用官方的:

Console

apiVersion: rocketmq.apache.org/v1alpha1
kind: Console
metadata:
  name: console
  namespace: rocketmq
spec:
  nameServers: "namesrv1:9876;namesrv2:9876"
  consoleDeployment:
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      labels:
        app: rocketmq-console
    spec:
      replicas: 2
      selector:
        matchLabels:
          app: rocketmq-console
      template:
        metadata:
          labels:
            app: rocketmq-console
        spec:
          containers:
            - name: console
              image: apacherocketmq/rocketmq-console:2.0.0
              ports:
                - containerPort: 8080

Service console-service

apiVersion: v1
kind: Service
metadata:
  name: console-service
  namespace: rocketmq
  labels:
    app: rocketmq-console
spec:
  selector:
    app: rocketmq-console
  ports:
    - port: 8080
      targetPort: 8080
      protocol: TCP

One Reply to “用rocketmq-operator部署rocketmq集群4-console部署”

LEAVE A COMMENT

Captcha Code