apache / rocketmq-operator

Apache RocketMQ Operator
https://rocketmq.apache.org/
Apache License 2.0
316 stars 127 forks source link

[Feature Request] Support Manage Multi RocketMQ cluster #176

Open drivebyer opened 1 year ago

drivebyer commented 1 year ago

Please describe the feature you are requesting.

I propose the enhancement of the current operator to support the management of multiple RocketMQ clusters by a single operator.

Provide any additional detail on your proposed use case for this feature.

https://github.com/apache/rocketmq-operator/blob/ad72466472819163ee9cb3562fdbfde35bd6e30b/pkg/share/share.go#L23-L38

Given the code above, our operator can only manage one RocketMQ cluster at a time (one nameservice deployment and one broker cluster). In a multi-tenant Kubernetes usage scenario, users may want to deploy multiple RocketMQ clusters in different namespaces.

Are you currently using any workarounds to address this issue?

One potential workaround might be to deploy one operator with one RocketMQ cluster in a single namespace. However, this is not a very efficient strategy in a Kubernetes environment.

If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

drivebyer commented 1 year ago

@caigy PTAL

caigy commented 1 year ago

Good proposal. Some tips: