<p>I am interested in knowing how pervasively labels / selectors are getting used in Kubernetes. Is it widely used feature in field to segregate container workloads.
If not, what are other ways that are used to segregate workloads in kubernetes.</p>

vishal
<p>I'm currently running a Kubernetes in production for some months and using the labels on some pods to spread them out over the nodes using the <code>podAntiAffinity</code> rules. So that these pods aren't all located on a single node. Mind you, I'm running a small cluster of three nodes.</p>

<pre><code>affinity:
  podAntiAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
    - labelSelector:
        matchExpressions:
        - key: app
          operator: In
          values:
          - your-deployment-name
      topologyKey: "kubernetes.io/hostname"
</code></pre>

<p>I've found this a useful way to use labels.</p>
