I still don't completely understand your use case, but yes you can write a scheduler predicate that filters out nodes based on IP address (by looking at the "addresses" field of the node's "status" field)
On Sat, Jun 17, 2017 at 3:55 AM, <dearbol...@gmail.com> wrote: > Because our control panel does not use `label` to manage nodes. > > 在 2017年6月17日星期六 UTC+8上午5:20:15,Rodrigo Campos写道: > > Why is it late to use labels? Sorry, didn't follow that. > > > > On Friday, June 16, 2017, <dearb...@gmail.com> wrote: > > Hello, I have a cluster with two IP ranges, which are x.x.x.7 and > x.x.x.8. Now I have a new schedule requirement that all the Pods should run > on x.x.x.7 nodes. It is too late for me to label the two IP ranges. So I > think I should use custom scheduler. But I have read > https://github.com/kubernetes/community/blob/master/ > contributors/devel/scheduler.md#scheduler-extensibility but still have no > ideas and do not understand how the policy works. Can I use "Predicates" to > filter out x.x.x.8 nodes? > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups "Kubernetes user discussion and Q&A" group. > > > > To unsubscribe from this group and stop receiving emails from it, send > an email to kubernetes-users+unsubscr...@googlegroups.com. > > > > To post to this group, send email to kubernetes-users@googlegroups.com. > > > > Visit this group at https://groups.google.com/group/kubernetes-users. > > > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.