{
  "description": "Affinity is a group of affinity scheduling rules.",
  "properties": {
    "nodeAffinity": {
      "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAffinity",
      "description": "Describes node affinity scheduling rules for the pod."
    },
    "podAffinity": {
      "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinity",
      "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))."
    },
    "podAntiAffinity": {
      "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAntiAffinity",
      "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))."
    }
  },
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://kubernetes.io/api/affinity/v1"
}