Hi,
I am working to integrate de-scheduler into one of our products which contains many different microservices under the same namespace. One of the requirement is that services should be able to opt out of de-scheduling if they don’t what their pods to get evicted.
To fulfil the above requirement, I considered using label filtering. Each service will have a label, using which it can opt-in for de-scheduling. However there are some strategies which do not support label filtering. While going through the code I realised that label filtering has been added to all strategies except LowNodeUtilization, HighNodeUtilization, RemoveDuplicates and RemovePodsViolatingTopologySpreadConstraint (commit link: Strategies: Add labelSelector to all strategies except LowNodeUtiliza… · kubernetes-sigs/descheduler@03518ba (github.com)).
Is there any specific reason why ‘Label Filtering’ is not supported in the above strategies by default? Locally, I have been able to make changes to support label filtering for RemoveDuplicates strategy and it looks to be working as expected. Should I add label filtering to other strategies also to fulfil my requirement? Or is there any better approach to fulfil my requirement?
Looking forward to your inputs.
Thanks and Regards,
Aman
--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-scheduling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-sch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-scheduling/DF4PR8401MB0665177C57D5272312F67A538CCE9%40DF4PR8401MB0665.NAMPRD84.PROD.OUTLOOK.COM.
Hi Mike, thanks for the detailed response. I am looking for something that is available with all the strategies. So, I will try to work with Priority Threshold filtering.
Thanks,
Aman