{
  "id": "kubernetes-topology-spread-constraints-table",
  "kind": "table",
  "slug": "kubernetes-topology-spread-constraints",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/kubernetes-topology-spread-constraints/",
  "title": "topologySpreadConstraints spread Pods evenly across zones and nodes using maxSkew",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "maxSkew",
      "source": "Kubernetes docs",
      "detail": "describes the degree to which Pods may be unevenly distributed; it is required and must be greater than zero."
    },
    {
      "name": "topologyKey",
      "source": "Kubernetes docs",
      "detail": "is a node label key. Nodes with this label and identical values are in the same topology, and each <key, value> pair is a domain."
    },
    {
      "name": "whenUnsatisfiable",
      "source": "Kubernetes docs",
      "detail": "DoNotSchedule (default) tells the scheduler not to schedule the Pod; ScheduleAnyway still schedules it while prioritizing nodes that minimize the skew."
    },
    {
      "name": "labelSelector",
      "source": "Kubernetes docs",
      "detail": "finds the matching Pods that are counted in each topology domain."
    },
    {
      "name": "matchLabelKeys",
      "source": "Kubernetes docs",
      "detail": "(optional) lists pod label keys whose values are merged into the labelSelector; it cannot be set when labelSelector isn't set."
    },
    {
      "name": "minDomains",
      "source": "Kubernetes docs",
      "detail": "(optional) indicates a minimum number of eligible domains."
    }
  ],
  "related_slugs": [
    "kubernetes-deployments",
    "kubernetes-labels-selectors",
    "kubernetes-pod-priority-preemption"
  ],
  "license": "CC-BY-4.0",
  "source_license": "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}