-
Notifications
You must be signed in to change notification settings - Fork 478
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
podAntiAffinity rewrite #2584
Comments
Can you give an example of what you are seeing here. What the name of the original stateful set is in the host, and the one syncing from the virtual cluster ?
Sorry I’m confused. Why do you want to rewrite the label ? Wouldn’t it make more sense to rewrite the name of the stateful set ? |
sorry, i trying to be more precise, so i created a mariadb cluster crd called "test" in the host kubernetes. Then i created a vcluster, installed mariadb operator inside, then created the same mariadb cluster called "test". Yes, of course I can add another name to the mariadb crd installed on the vcluster. The main reason why i posted this issue is that in the current vcluster workflow it seems the user need to take care of this, so vcluster does not manage the potential conflicting antiaffinity rules. To resolve this, it is a solution if vcluster rewrite the app.kubernetes.io/instance and app.kubernetes.io/name and also the podAntiaffinity rules by extending it with vlcuster name and namespace but i not sure about this is the right thing. Why it can be useful? With this approach user can run multiple vclusters with inside the same installments, so testing applications is easier. In my example I need to call mariadb an another name to avoid the conflict, but in this case the service name will also change so i need to apply different configuration for the applications if i run it multiple test environments. I can place a mutation webhook to the host kubernetes to "fix" this, but in this case can you inform about what will vcluster do if the created pod have modified app.kubernetes.io/instance, app.kubernetes.io/name and podAntiaffinity rules? |
Is your feature request related to a problem?
For example if i create a statefulset in the host cluster and add:
then I add the same statefulset on the vcluster environment the pods will not schedule because of the app.kubernetes.io/instance will be the same and the previous statefulset use all available nodes in the example.
Which solution do you suggest?
I"m not sure what can be broken if vlcuster rewrite this label in the statefulset everywhere.. just asking this is something that vcluster plan to handle in the future? or it will stay as a limitation?
Which alternative solutions exist?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: