-
Notifications
You must be signed in to change notification settings - Fork 323
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
[Feature] Support dynamic refresh of watched namespaces #2061
Comments
I would like to work on this issue. I also have some ideas about this issue:
|
@MortalHappiness Thanks for the proposal. Feel free to go ahead with working on this, I won't have any cycles to work on this in the next few months. |
After some investigation into this issue and discussion with @kevin85421, we found that In Flink operator, it uses
In kuberay, we use DefaultNamespaces to set the namespaces to watch. However, in kubernetes-sigs/controller-runtime#2829, one of the maintainers said that we cannot change |
Search before asking
Description
Currently we use the
--watch-namespace=foo,bar
flag to specify the list of namespaces to watch. Extending this list with additional namespaces requires an operator restart. In large shared k8s clusters, new namespaces might be created on demand, and relatively frequently, for hosting new Ray workloads.In this case, it would be very useful to avoid constant restarts. One solution, already used by the Apache Flink operator, is to periodically read the list of namespaces from a configmap. I would propose to implement the same solution in KubeRay. We may want to have a new flag (e.g.
--namespace-cm=configmap_name
), and we can decide how that would interact with the existing--watch-namespace=...
flag (e.g. make them mutually exclusive, or complementary)Use case
No response
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: