No, it does not support wildcard. You have to list each of the ws1, ws2, ws3, ... individually in the "values" set
On Thu, Aug 17, 2017 at 10:47 PM, Yong Zhang <hiscal2...@gmail.com> wrote: > Hi, all > > I have pods with label role: ws1, role: ws2, role: ws3, ... role: ws20 > > Now I want to set podAntiAffinity to separate these ws pods, Can I just > input "ws" or "ws*"to values as below? Thanks. > > podAntiAffinity: > preferredDuringSchedulingIgnoredDuringExecution: > - weight: 100 > podAffinityTerm: > labelSelector: > matchExpressions: > - key: role > operator: In > values: ws (or ws*?) > > -- > 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.