-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotation to choose which rabbitmq-operator manages instance #699
Comments
@james-callahan Thanks for using cluster operator 😸 This is an interesting idea and can certainly be done with the operator. I would like to understand what specific use case it could enable for you. With the example of multiple ingress controllers, they are functionally different and I can see why it's necessary for certain environments. For cluster operators, later versions only add features and never remove any feature support. Could you explain more your needs for such this feature request? On the other hand, if you wish to have multiple operators in your k8s clusters each managing a set of rabbits, you can do that today with namespacing the cluster operator by setting the environment variable OPERATOR_SCOPE_NAMESPACE on the operator deployment. For like:
This will make the operator only watch for rabbit clusters in one namespace and you could have multiple operators deployed in different namespaces. They will only manage rabbit clusters created in namespace |
This issue has been marked as stale due to 60 days of inactivity. Stale issues will be closed after a further 30 days of inactivity; please remove the stale label in order to prevent this occurring. |
e.g. testing a new version of the operator without shutting down the old operator. |
@james-callahan I see. With your use case I think setting the environment variable |
That's not sufficient: e.g.
What's needed is a way to opt specific rabbitmq instances into an operator (via some field or an annotation) |
Hi @ChunyiLyu Do you have the documentation for this? I have tried OPERATOR_SCOPE_NAMESPACE, but it still conflicts with another operator running in a different namespace. I have even tried to apply the namespace for each service, role binding, role, deployment, etc., in operator, but it seems it does not help. Appreciate your guidance on this, thanks |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm attempting to do the same thing here - multiple clusters in different namespaces (dev, val, prd). I'm struggling to understand what the deployments should look like for each namespace and like wise for the operator itself, any hints would be greatly appreciated |
Hi dgshue,
I hope this helpsl. |
I was able to get this working, but I ended up with different operators in
their respective namespaces scoped to their own namespace. Thanks for the
help!
…On Tue, Sep 26, 2023 at 6:18 PM durairajasivam ***@***.***> wrote:
I'm attempting to do the same thing here - multiple clusters in different
namespaces (dev, val, prd). I'm struggling to understand what the
deployments should look like for each namespace and like wise for the
operator itself, any hints would be greatly appreciated
Hi dgshue, Create CRD and Operator it will be running one namespace called
rabbitmq-system, it will manage all your RabbitMQ clusters regrades of
namespaces by defaults. once the rabbitmq-cluster-operator in running state
you can create your rabbitmq cluster by applying deployment kind
RabbitmqCluster for each namespaces. hope this helps!.
—
Reply to this email directly, view it on GitHub
<#699 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADC2EXHI2HPVORSUPKW36A3X4NID7ANCNFSM45IGUIVQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Is your feature request related to a problem? Please describe.
To be able to run more than one instance of the rabbitmq operator in a cluster, we'd like a way to specify which rabbitmq-operator should act on a given Cluster manifest
Describe the solution you'd like
Add an environment variable to the operator, e.g.
OPERATOR_NAME
which is checked against aRabbitmqCluster
annotation such asrabbitmq.com/cluster-operator/name
.Additional context
The proposed solution is similar to how you can have multiple ingresses in a given cluster selected by
kubernetes.io/ingress.class
The text was updated successfully, but these errors were encountered: