{
  "description": "ModelRouter is the Schema for the modelrouters API. It exposes a single\nOpenAI-compatible HTTP endpoint that dispatches requests across multiple\nInferenceService backends and external providers per declarative routing\nrules. See docs/site/concepts/model-router.md (Phase 1) for usage.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "spec defines the desired state of ModelRouter",
      "properties": {
        "agentGatewayRef": {
          "additionalProperties": false,
          "description": "AgentGatewayRef identifies the pre-installed agentgateway data plane the\ngenerated InferencePool/HTTPRoute/model-extraction AgentgatewayPolicy\nattach to when DataPlane is \"AgentGateway\". Required in AgentGateway mode;\nignored otherwise. The Gateway, the Gateway API Inference Extension CRDs\n(InferencePool at inference.networking.k8s.io/v1), the agentgateway.dev\nCRDs, and an Endpoint Picker (EPP) service are documented prerequisites;\nLLMKube does not install or own them. The agentgateway controller must run\nwith Inference-Pool backendRef support (inferenceExtension.enabled=true in\nthe agentgateway chart). The EndpointPicker is referenced by every\ngenerated InferencePool so agentgateway can select a model-server endpoint\nper request. The Gateway may be in another namespace: the generated\nAgentgatewayPolicy then lives in the Gateway's namespace (its targetRefs\nare same-namespace), is not owner-referenced, and is cleaned up via a\nfinalizer on this ModelRouter. Because that policy targets the whole\nGateway, its body-model extraction runs on EVERY request through that\nGateway, including routes LLMKube did not generate. The Gateway must not\nalready carry another PreRouting transformation policy: the router is\nrefused (ConflictingPreRoutingPolicy) rather than silently shadowed.\nagentgateway keeps the OLDEST same-specificity policy's transformation,\nso LLMKube does not retract its policy on conflict; the condition clears\nwhen the foreign policy is removed, and the reconciler rechecks every\ntwo minutes (a foreign policy created after the router went Ready is\notherwise silently shadowed). agentgateway inspects at most 2 MiB of the\nrequest body by default (its DEFAULT_BUFFER_LIMIT); larger bodies (long\ncontexts, images) are not routed on this path - the CEL extraction\nfails and the model header is removed. A Gateway owner can raise the\nlimit with a frontend.http.maxBufferSize policy, a different field that\ndoes not conflict with the extraction policy.",
          "properties": {
            "endpointPicker": {
              "description": "EndpointPicker names the router-wide default EPP Service. A backend's\nown endpointPicker overrides it. A Gateway API Inference Extension EPP\nbinds to exactly one InferencePool, so the default serves a router whose\nbackends all reference one InferenceService; with several, set\nspec.backends[].endpointPicker. The Service lives in this ModelRouter's\nnamespace: GIE v1's endpointPickerRef has no namespace field.",
              "type": [
                "string",
                "null"
              ]
            },
            "endpointPickerPort": {
              "description": "EndpointPickerPort is the port the default EPP Service listens on. Set\ntogether with endpointPicker.",
              "format": "int32",
              "maximum": 65535,
              "minimum": 1,
              "type": [
                "integer",
                "null"
              ]
            },
            "hostnames": {
              "description": "Hostnames limit the generated HTTPRoute to these hosts. routing: Model\nonly, where it or sectionName is required.",
              "items": {
                "maxLength": 253,
                "minLength": 1,
                "pattern": "^(\\*\\.)?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                "type": "string"
              },
              "maxItems": 16,
              "minItems": 1,
              "type": [
                "array",
                "null"
              ]
            },
            "name": {
              "description": "Name is the agentgateway Gateway's name.",
              "type": "string"
            },
            "namespace": {
              "description": "Namespace is the Gateway's namespace. Empty means the ModelRouter's own\nnamespace. A different namespace is supported: the generated\nmodel-extraction AgentgatewayPolicy then lives in the Gateway's\nnamespace (it cannot be owner-referenced across namespaces and is\ncleaned up via a finalizer on this ModelRouter), while the pools and\nroute stay here. The pools, the referenced InferenceServices, and the\nEndpointPicker Service all live in this ModelRouter's namespace\nregardless.",
              "type": [
                "string",
                "null"
              ]
            },
            "routing": {
              "default": "InferencePool",
              "description": "Routing selects the compile target. \"InferencePool\" (the default) is the\nGateway API Inference Extension path described on spec.agentGatewayRef.\n\"Model\" uses agentgateway's model router (v1.6.0+): one AgentgatewayModel\nper backend, matched on its displayName (else name), behind one\ncatch-all HTTPRoute. It needs no Inference Extension CRDs or Endpoint\nPicker. spec.rules, spec.defaultRoute, external backends, resolution:\nendpoint, and per-backend endpoint pickers are refused in this mode.",
              "enum": [
                "InferencePool",
                "Model"
              ],
              "type": [
                "string",
                "null"
              ]
            },
            "sectionName": {
              "description": "SectionName names the Gateway listener the generated HTTPRoute attaches\nto. routing: Model only, where it or hostnames is required, because the\nroute takes every path on its listeners.",
              "maxLength": 253,
              "minLength": 1,
              "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "name"
          ],
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-validations": [
            {
              "message": "endpointPicker and endpointPickerPort must be set together",
              "rule": "has(self.endpointPicker) == has(self.endpointPickerPort)"
            },
            {
              "message": "endpointPicker and endpointPickerPort apply only to routing: InferencePool",
              "rule": "!(has(self.routing) \u0026\u0026 self.routing == 'Model') || !has(self.endpointPicker)"
            },
            {
              "message": "routing: Model requires sectionName or hostnames: its HTTPRoute matches every path, so it must not take over a whole Gateway",
              "rule": "!(has(self.routing) \u0026\u0026 self.routing == 'Model') || has(self.sectionName) || has(self.hostnames)"
            },
            {
              "message": "sectionName and hostnames apply only to routing: Model",
              "rule": "(has(self.routing) \u0026\u0026 self.routing == 'Model') || (!has(self.sectionName) \u0026\u0026 !has(self.hostnames))"
            }
          ]
        },
        "backendSelector": {
          "additionalProperties": false,
          "description": "BackendSelector adds every InferenceService in the router's namespace\nthat matches this label selector as a tier: local backend named after\nthe service. The name is the model id published on /v1/models and the\nid BackendNameMatch resolves. An empty selector ({}) selects every\nInferenceService in the namespace.\n\nExplicit backends entries still apply beside the selector. An entry\nwith neither inferenceServiceRef nor external overrides the fields it\nsets on the selected backend of the same name, so per-model tuning does\nnot restate the backend.\n\nProxy data plane only: dataPlane Gateway and AgentGateway refuse it at\nadmission.",
          "properties": {
            "matchExpressions": {
              "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
              "items": {
                "additionalProperties": false,
                "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                "properties": {
                  "key": {
                    "description": "key is the label key that the selector applies to.",
                    "type": "string"
                  },
                  "operator": {
                    "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                    "type": "string"
                  },
                  "values": {
                    "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ],
                    "x-kubernetes-list-type": "atomic"
                  }
                },
                "required": [
                  "key",
                  "operator"
                ],
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ],
              "x-kubernetes-list-type": "atomic"
            },
            "matchLabels": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
              "type": [
                "object",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-map-type": "atomic"
        },
        "backends": {
          "description": "Backends are the candidate destinations the router can dispatch to.\nOrder is not significant; selection is rule-driven. At least one\nbackend must be declared unless BackendSelector is set.",
          "items": {
            "additionalProperties": false,
            "description": "RouterBackend is one candidate destination for routed requests.\nExactly one of InferenceServiceRef or External must be set, except on a\nrouter with spec.backendSelector: there an entry with neither overrides the\nfields it sets on the selected backend of the same Name.",
            "properties": {
              "balancing": {
                "additionalProperties": false,
                "description": "Balancing places requests across this backend's pods by load and keeps\na session on its pod until it runs hot. Requires resolution: endpoint.\nUnset keeps round-robin.\nApplies to the Proxy data plane only; ignored by the Gateway and\nAgentGateway data planes.",
                "properties": {
                  "mode": {
                    "default": "RoundRobin",
                    "description": "Mode is RoundRobin (today's behavior) or LoadAware: the pod with the\nleast work, read from the engine's own metrics where LLMKube has a\nprofile for the runtime (vLLM) and from in-flight requests otherwise.",
                    "enum": [
                      "RoundRobin",
                      "LoadAware"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "prefixAffinity": {
                    "additionalProperties": false,
                    "description": "PrefixAffinity sends a request to the pod most likely to hold its\nprompt's prefix in KV cache, traded against that pod's load. The router\nremembers which prompt blocks it sent to each pod, so it needs no session\nheader and no engine support. Set it (an empty object takes the\ndefaults) to turn it on. It requires mode: LoadAware; with RoundRobin it\nis ignored and the router emits a PrefixAffinityIgnored warning event.",
                    "properties": {
                      "blockBytes": {
                        "default": 1024,
                        "description": "BlockBytes is the size of the prompt blocks the router hashes, in bytes\nof the request's tools, system prompt and messages (about four bytes\nper token). A shared prefix counts in whole blocks, so smaller blocks\ncatch shorter shared prefixes and cost more memory. Defaults to 1024.",
                        "format": "int32",
                        "maximum": 16384,
                        "minimum": 256,
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "maxBlocksPerEndpoint": {
                        "default": 16384,
                        "description": "MaxBlocksPerEndpoint bounds the blocks the router remembers per pod;\nthe least recently sent go first. The default, 16384, covers 16 MiB of\nprompt (about 4M tokens) per pod at the default block size, more than a\npod's KV cache holds.",
                        "format": "int32",
                        "maximum": 262144,
                        "minimum": 1024,
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "sessionAffinity": {
                    "additionalProperties": false,
                    "description": "SessionAffinity places a new session on the least-loaded pod. The session\nstays there unless that pod is queuing and clearly busier than another\npod, and then it stays where it moved. It requires mode: LoadAware; with\nRoundRobin it is ignored and the router emits a SessionAffinityIgnored\nwarning event.",
                    "properties": {
                      "headers": {
                        "description": "Headers identify a session, in priority order; the first present with a\nnon-empty value is the key. Compared case-insensitively. Only a hash of\nthe value is used. Each name is an RFC 7230 header token.",
                        "items": {
                          "maxLength": 256,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9!#$%\u0026'*+.^_|~`-]+$",
                          "type": "string"
                        },
                        "maxItems": 8,
                        "minItems": 1,
                        "type": "array"
                      },
                      "idleTimeout": {
                        "description": "IdleTimeout is how long a session may go without a request before the\nrouter forgets which pod it was on. The next request from that session\nis placed again by load. Defaults to 30m when unset. Must be between\n1m and 24h.",
                        "type": [
                          "string",
                          "null"
                        ],
                        "x-kubernetes-validations": [
                          {
                            "message": "idleTimeout must be between 1m and 24h",
                            "rule": "duration(self) \u003e= duration('1m') \u0026\u0026 duration(self) \u003c= duration('24h')"
                          }
                        ]
                      },
                      "maxLoadPercent": {
                        "description": "MaxLoadPercent is deprecated and has no effect since this release:\nsessions are now placed from the session binding table, not spilled by a\nload threshold. It is still accepted so existing manifests keep\napplying, and will be removed in a later API version.",
                        "format": "int32",
                        "maximum": 1000,
                        "minimum": 101,
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "headers"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "capabilities": {
                "description": "Capabilities advertised by this backend. Rules can require\ncapabilities (e.g. [\"tools\", \"vision\", \"long-context\"]) to filter\ncandidates.",
                "items": {
                  "type": "string"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "costPerMillionTokens": {
                "additionalProperties": false,
                "description": "CostPerMillionTokens is informational. Used for cost-aware routing\nmetrics and audit-log enrichment. Values are USD.",
                "properties": {
                  "completionUSD": {
                    "description": "CompletionUSD is the cost per million completion (output) tokens,\nin USD.",
                    "pattern": "^[0-9]+(\\.[0-9]+)?$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "promptUSD": {
                    "description": "PromptUSD is the cost per million prompt (input) tokens, in USD.",
                    "pattern": "^[0-9]+(\\.[0-9]+)?$",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "displayName": {
                "description": "DisplayName is an optional freeform label published as the model id\non /v1/models and used by BackendNameMatch to resolve a request's\nmodel field to a backend. When unset, Name is used for both\npurposes (current behavior). This lets the k8s-safe Name differ\nfrom the user-facing model identifier (e.g. Name \"claude-opus-4\"\nwith DisplayName \"claude-opus-4-20250514\").",
                "type": [
                  "string",
                  "null"
                ]
              },
              "endpointPicker": {
                "additionalProperties": false,
                "description": "EndpointPicker selects the Endpoint Picker (EPP) that chooses a pod for\nthis backend's InferencePool on dataPlane: AgentGateway. When unset, the\nbackend uses the picker another backend on the same InferenceService\nnames, else the router-wide spec.agentGatewayRef.endpointPicker. A Gateway API\nInference Extension EPP binds to exactly one InferencePool, so a router\nwith backends on several InferenceServices sets a picker per backend.\nIgnored by the Proxy and Gateway data planes.",
                "properties": {
                  "service": {
                    "additionalProperties": false,
                    "description": "Service names an EPP Service in the ModelRouter's namespace. GIE v1's\nendpointPickerRef has no namespace field, so the pool references it\nsame-namespace.",
                    "properties": {
                      "name": {
                        "description": "Name is the EPP Service's name.",
                        "minLength": 1,
                        "type": "string"
                      },
                      "port": {
                        "description": "Port is the port the EPP Service listens on.",
                        "format": "int32",
                        "maximum": 65535,
                        "minimum": 1,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "name",
                      "port"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ],
                "x-kubernetes-validations": [
                  {
                    "message": "endpointPicker.service is required",
                    "rule": "has(self.service)"
                  }
                ]
              },
              "external": {
                "additionalProperties": false,
                "description": "External describes an out-of-cluster provider (Anthropic, OpenAI,\nor a LiteLLM proxy). Mutually exclusive with InferenceServiceRef.",
                "properties": {
                  "credentialsSecretRef": {
                    "additionalProperties": false,
                    "description": "CredentialsSecretRef points to a Kubernetes Secret containing the\nprovider credentials. Conventional keys: ANTHROPIC_API_KEY,\nOPENAI_API_KEY, LITELLM_MASTER_KEY. The router-proxy reads these as\nenvironment variables.",
                    "properties": {
                      "name": {
                        "default": "",
                        "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ],
                    "x-kubernetes-map-type": "atomic"
                  },
                  "model": {
                    "description": "Model is the upstream model identifier passed through to the\nprovider (e.g. \"claude-opus-4-7\", \"gpt-5\", a LiteLLM model alias).",
                    "type": "string"
                  },
                  "provider": {
                    "description": "Provider identifies the upstream API surface. For \"litellm\", URL must\npoint at a running LiteLLM proxy speaking OpenAI-compatible API.\nFor first-party providers, URL is optional (provider defaults apply).",
                    "enum": [
                      "anthropic",
                      "openai",
                      "bedrock",
                      "vertex_ai",
                      "litellm"
                    ],
                    "type": "string"
                  },
                  "url": {
                    "description": "URL is the base URL for the provider. Required for \"litellm\";\noptional for first-party providers, which use their published default.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "model",
                  "provider"
                ],
                "type": [
                  "object",
                  "null"
                ]
              },
              "healthCheck": {
                "additionalProperties": false,
                "description": "HealthCheck overrides the default health probe applied to this\nbackend by the router-proxy.",
                "properties": {
                  "intervalSeconds": {
                    "default": 10,
                    "description": "IntervalSeconds is how often the router-proxy probes the backend.",
                    "format": "int32",
                    "minimum": 1,
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "path": {
                    "description": "Path is the HTTP path probed for health. Defaults to \"/health\" for\nlocal backends and to the provider's documented health route for\nexternal providers.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "timeoutSeconds": {
                    "default": 2,
                    "description": "TimeoutSeconds is the maximum time a single probe may take.",
                    "format": "int32",
                    "minimum": 1,
                    "type": [
                      "integer",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "inferenceServiceRef": {
                "additionalProperties": false,
                "description": "InferenceServiceRef references an in-cluster InferenceService.\nMutually exclusive with External.",
                "properties": {
                  "name": {
                    "default": "",
                    "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ],
                "x-kubernetes-map-type": "atomic"
              },
              "modelInfo": {
                "additionalProperties": false,
                "description": "ModelInfo describes what this backend's model accepts and how much\ncontext it holds. The proxy publishes it on the backend's /v1/models\nentry, where clients decide whether to send images and how to size\ntheir context. Informational only: the proxy does not enforce it.\nUnset, the entry carries only the model id. Applies to the Proxy data\nplane only; the Gateway and AgentGateway data planes ignore it.",
                "properties": {
                  "contextLength": {
                    "description": "ContextLength is the context window one request gets, in tokens. When\nunset, the controller fills it from the InferenceService:\nvllmConfig.maxModelLen (or --max-model-len in extraArgs) for vLLM, and\ncontextSize divided across parallelSlots for llama.cpp. Other runtimes,\nand llama.cpp extraArgs that set those flags, publish none.",
                    "format": "int64",
                    "minimum": 1,
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "inputModalities": {
                    "description": "InputModalities the model accepts. When unset, a backend whose\ncapabilities include \"vision\" publishes [\"text\", \"image\"], and any\nother backend [\"text\"]. When set, it wins over capabilities.",
                    "items": {
                      "enum": [
                        "text",
                        "image",
                        "audio",
                        "video",
                        "file"
                      ],
                      "type": "string"
                    },
                    "maxItems": 5,
                    "type": [
                      "array",
                      "null"
                    ],
                    "x-kubernetes-list-type": "set"
                  },
                  "outputModalities": {
                    "description": "OutputModalities the model produces. Defaults to [\"text\"].",
                    "items": {
                      "enum": [
                        "text",
                        "image",
                        "audio",
                        "video",
                        "file"
                      ],
                      "type": "string"
                    },
                    "maxItems": 5,
                    "type": [
                      "array",
                      "null"
                    ],
                    "x-kubernetes-list-type": "set"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "name": {
                "description": "Name is the stable identifier used by rules and observability labels.\nMust be lowercase alphanumeric or '-'.",
                "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
                "type": "string"
              },
              "resolution": {
                "default": "service",
                "description": "Resolution selects how a local (inferenceServiceRef) backend's upstream\naddress is resolved. \"service\" (the default) dispatches to the\nInferenceService's ClusterIP Service DNS name, so a keep-alive client\ncan pin to one pod through conntrack. \"endpoint\" has the router-proxy\ntrack the ready pods behind the Service itself and balance requests\nacross them.\nExternal backends ignore this field.",
                "enum": [
                  "service",
                  "endpoint"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "tier": {
                "default": "local",
                "description": "Tier classifies the backend for rule matching. \"local\" backends are\nserved from inside the cluster; \"cloud\" backends egress the cluster\nboundary. Fail-closed rules can only route to local-tier backends.",
                "enum": [
                  "local",
                  "cloud"
                ],
                "type": [
                  "string",
                  "null"
                ]
              },
              "timeout": {
                "description": "Timeout caps how long the proxy waits for this backend to begin\nsending response headers. When set it overrides the proxy\ndefault for dispatches that target this backend. Resolution\norder at dispatch time: rule.timeout || backend.timeout ||\nproxy default (ModelRouter.spec.proxy.responseHeaderTimeout).\nUseful when backends in the same router have wildly different\nP99 envelopes (in-cluster vLLM vs Anthropic global LB).",
                "type": [
                  "string",
                  "null"
                ]
              },
              "weight": {
                "description": "Weight is used for the \"weighted\" routing strategy. Higher values\nreceive proportionally more traffic. Ignored for other strategies.\nDefault 1 when unset. 0 drains the backend from weighted rules: it\nreceives no traffic from them, even while every other backend in the\nrule is unavailable (the Gateway API meaning of a zero weight, which\nboth data planes follow). A weighted rule needs at least one backend\nwith a positive weight.",
                "format": "int32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object",
            "x-kubernetes-validations": [
              {
                "message": "balancing requires an endpoint-resolution backend and no external provider",
                "rule": "!has(self.balancing) || (!has(self.external) \u0026\u0026 has(self.resolution) \u0026\u0026 self.resolution == 'endpoint')"
              }
            ]
          },
          "type": [
            "array",
            "null"
          ]
        },
        "dataPlane": {
          "default": "Proxy",
          "description": "DataPlane selects how this ModelRouter serves traffic.\n\n\"Proxy\" (default) provisions the managed router-proxy Deployment +\nService and routes in-process per the rules below (today's behavior,\nfully back-compat).\n\n\"Gateway\" compiles the backends and rules onto a pre-installed Envoy AI\nGateway: a Backend + AIServiceBackend per InferenceServiceRef backend, a\nmulti-rule AIGatewayRoute, and a retry/failover BackendTrafficPolicy. In\nGateway mode the router-proxy is NOT provisioned. Requires the aigw CRDs\nto be installed; when they are absent the gateway resources are not\ngenerated and a condition explains why.\n\n\"AgentGateway\" compiles the backends and rules onto a pre-installed\nagentgateway data plane: one AgentgatewayBackend (custom provider targeting\nan InferencePool) per InferenceServiceRef backend and a multi-rule HTTPRoute\nmatching on the X-Gateway-Base-Model-Name header. In AgentGateway mode the\nrouter-proxy is NOT provisioned. Requires the agentgateway.dev CRDs and a\npre-installed agentgateway Gateway; when they are absent the resources are\nnot generated and a condition explains why.",
          "enum": [
            "Proxy",
            "Gateway",
            "AgentGateway"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "defaultRoute": {
          "description": "DefaultRoute names a backend used when no rule matches.\nMust reference the Name of an entry in Backends.",
          "type": [
            "string",
            "null"
          ]
        },
        "defaultRouteStrategy": {
          "default": "Static",
          "description": "DefaultRouteStrategy decides what happens when no rule matches.\n\"Static\" (default) routes to DefaultRoute. \"BackendNameMatch\" first\ntries to match the request's model to a backend Name, falling back to\nDefaultRoute only if none matches. BackendNameMatch makes every backend,\nincluding cloud-tier ones, directly addressable by name; sensitive-data\nprotection still relies on a matching failClosed rule, which is evaluated\nfirst and therefore continues to gate before any name match.",
          "enum": [
            "Static",
            "BackendNameMatch"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "endpoint": {
          "additionalProperties": false,
          "description": "Endpoint defines the Kubernetes Service the router-proxy is exposed\nthrough. Mirrors the shape used by InferenceService.",
          "properties": {
            "apiKeySecretRef": {
              "additionalProperties": false,
              "description": "APIKeySecretRef names a Secret key holding the API key callers must\npresent as \"Authorization: Bearer \u003ckey\u003e\". vLLM reads it as VLLM_API_KEY;\nSGLang's launcher writes LLMKUBE_API_KEY to a private, memory-backed\nconfig file and unsets the variable before starting SGLang. kubectl exec\nsessions still receive LLMKUBE_API_KEY from the container's Secret reference.\nThe key stays out of the pod spec and OS process arguments, but SGLang may still print\napi_key in its startup log (verified on v0.5.19). Treat pod logs and any\ndownstream log storage as credentials until upstream redacts api_key\nand admin_api_key. vLLM does not have this command-line/log exposure.\nBoth runtimes leave /health and /metrics open, so probes keep working.\nSupported for runtime vllm and sglang. A key change takes effect when the\npods restart. An --api-key already in extraArgs wins; LLMKube then adds\nnothing. Cannot be combined with gateway.enabled: the gateway does not\nforward the key. Not supported on ModelRouter.",
              "properties": {
                "key": {
                  "description": "The key of the secret to select from.  Must be a valid secret key.",
                  "type": "string"
                },
                "name": {
                  "default": "",
                  "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "optional": {
                  "description": "Specify whether the Secret or its key must be defined",
                  "type": [
                    "boolean",
                    "null"
                  ]
                }
              },
              "required": [
                "key"
              ],
              "type": [
                "object",
                "null"
              ],
              "x-kubernetes-map-type": "atomic"
            },
            "externalTrafficPolicy": {
              "description": "ExternalTrafficPolicy sets the Service's externalTrafficPolicy. Local\npreserves the client source IP on a NodePort or LoadBalancer, which an IP\nallowlist (NetworkPolicy) needs. Unset keeps the Kubernetes default\n(Cluster). Requires endpoint.type NodePort or LoadBalancer.",
              "enum": [
                "Cluster",
                "Local"
              ],
              "type": [
                "string",
                "null"
              ]
            },
            "gateway": {
              "additionalProperties": false,
              "description": "Gateway opts this InferenceService into Envoy AI Gateway exposure. When\nset and Enabled, the operator generates the Backend / AIServiceBackend /\nAIGatewayRoute resources that front this service through a pre-installed\nEnvoy AI Gateway. nil (the default) preserves today's behavior (no\ngateway resources). The Envoy AI Gateway stack and the referenced Gateway\nare a documented prerequisite; LLMKube does not install or own them.",
              "properties": {
                "enabled": {
                  "description": "Enabled is the opt-in switch. When false (or when Gateway is nil), the\noperator generates no gateway resources for this InferenceService.",
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "gatewayRef": {
                  "additionalProperties": false,
                  "description": "GatewayRef identifies the pre-installed Gateway (gateway.networking.k8s.io)\nthe generated AIGatewayRoute attaches to. The Gateway typically lives in a\ndedicated gateway namespace; cross-namespace attachment requires the\nGateway listener's allowedRoutes.namespaces to permit this\nInferenceService's namespace (a documented prerequisite for the MVP; the\noperator does not generate ReferenceGrants or touch the listener).",
                  "properties": {
                    "name": {
                      "description": "Name is the Gateway's name.",
                      "type": "string"
                    },
                    "namespace": {
                      "description": "Namespace is the Gateway's namespace. Empty means the InferenceService's\nown namespace.",
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "type": "object"
                },
                "modelName": {
                  "description": "ModelName is the OpenAI \"model\" string clients send, matched by the\ngenerated route rule (the x-ai-eg-model header the gateway's ext_proc\npopulates from the request body). Defaults to ModelRef, falling back to\nthe InferenceService name when ModelRef is empty.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "gatewayRef"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "nodePort": {
              "description": "NodePort is the specific NodePort to pin when endpoint.type is NodePort.\nIf set, the Service will use this exact port instead of auto-assigning\nfrom the 30000-32767 range. This provides a stable external endpoint\nacross redeployments.",
              "format": "int32",
              "maximum": 32767,
              "minimum": 30000,
              "type": [
                "integer",
                "null"
              ]
            },
            "path": {
              "default": "/v1/chat/completions",
              "description": "Path is the HTTP path for the inference endpoint",
              "type": [
                "string",
                "null"
              ]
            },
            "port": {
              "default": 8080,
              "description": "Port is the service port",
              "format": "int32",
              "maximum": 65535,
              "minimum": 1,
              "type": [
                "integer",
                "null"
              ]
            },
            "type": {
              "default": "ClusterIP",
              "description": "Type is the Kubernetes service type (ClusterIP, NodePort, LoadBalancer)",
              "enum": [
                "ClusterIP",
                "NodePort",
                "LoadBalancer"
              ],
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ],
          "x-kubernetes-validations": [
            {
              "message": "externalTrafficPolicy requires endpoint.type NodePort or LoadBalancer",
              "rule": "!has(self.externalTrafficPolicy) || (has(self.type) \u0026\u0026 self.type in ['NodePort','LoadBalancer'])"
            },
            {
              "message": "endpoint.apiKeySecretRef cannot be combined with endpoint.gateway.enabled: the gateway does not forward the key, so requests would get 401",
              "rule": "!has(self.apiKeySecretRef) || !has(self.gateway) || !has(self.gateway.enabled) || !self.gateway.enabled"
            },
            {
              "message": "endpoint.apiKeySecretRef needs a non-empty Secret name and a valid Secret key (letters, digits, '-', '_' and '.')",
              "rule": "!has(self.apiKeySecretRef) || (has(self.apiKeySecretRef.name) \u0026\u0026 size(self.apiKeySecretRef.name) \u003e 0 \u0026\u0026 self.apiKeySecretRef.key.matches('^[-._a-zA-Z0-9]+$'))"
            }
          ]
        },
        "gatewayRef": {
          "additionalProperties": false,
          "description": "GatewayRef identifies the pre-installed Gateway (gateway.networking.k8s.io)\nthe generated AIGatewayRoute attaches to when DataPlane is \"Gateway\".\nRequired in Gateway mode; ignored in Proxy mode. The Gateway and the Envoy\nAI Gateway stack are a documented prerequisite; LLMKube does not install\nor own them. Cross-namespace attachment requires the Gateway listener's\nallowedRoutes.namespaces to permit this ModelRouter's namespace.",
          "properties": {
            "name": {
              "description": "Name is the Gateway's name.",
              "type": "string"
            },
            "namespace": {
              "description": "Namespace is the Gateway's namespace. Empty means the InferenceService's\nown namespace.",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "name"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "mcpServer": {
          "additionalProperties": false,
          "description": "MCPServer optionally exposes this router as a Model Context Protocol\nendpoint. Inactive until the Phase 3 MCP feature lands; the field is\nreserved in the schema for forward compatibility.",
          "properties": {
            "enabled": {
              "description": "Enabled toggles MCP exposure. Default false. When true (after Phase\n3 lands), the router-proxy serves an MCP endpoint at /mcp using\nStreamable HTTP transport and OAuth 2.1.",
              "type": [
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "policy": {
          "additionalProperties": false,
          "description": "Policy holds cross-cutting controls (budgets, classification, audit).",
          "properties": {
            "auditLog": {
              "additionalProperties": false,
              "description": "AuditLog controls structured audit emission. Auditing is always on;\nthis field tunes the destination and verbosity.",
              "properties": {
                "callerHeader": {
                  "description": "CallerHeader names a request header whose value is added to every\naudit entry as caller, for example X-LLMKube-Client set by each\nclient. The client chooses the value, so it is a label rather than an\nidentity. It is cut to 128 bytes, and characters outside printable\nASCII are replaced with '?'. A header that carries a credential (Authorization,\nProxy-Authorization, Cookie, X-Api-Key, Api-Key, X-Goog-Api-Key) is\nrefused.",
                  "maxLength": 64,
                  "pattern": "^[A-Za-z0-9!#$%\u0026'*+.^_|~-]+$",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "filePath": {
                  "description": "FilePath is the destination when Sink=file. Must be writable inside\nthe router-proxy container. Defaults to \"/var/log/mlx-router/audit.log\".",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "includeRequestBody": {
                  "description": "IncludeRequestBody, when true, includes the OpenAI request body in\nevery audit entry. Disabled by default for size and privacy.",
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "logClientAddress": {
                  "description": "LogClientAddress, when true, adds the address of the request's sender\nto every audit entry as client. It is the TCP peer: in-cluster callers\nkeep their pod IP through the ClusterIP. When the peer is in\nTrustedProxyCIDRs, it is the first address in X-Forwarded-For, read\nfrom the right, that is not a trusted proxy. Off by default, because a\nclient address is personal data in some deployments.",
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "sink": {
                  "default": "stdout",
                  "description": "Sink selects the audit-log destination.\n\"stdout\" (default) emits one JSON object per line to the proxy\n  container stdout, where it can be collected by the cluster log\n  stack.\n\"file\" writes to FilePath inside the proxy container.\n\"otlp\" forwards entries to an OTel collector as log records.",
                  "enum": [
                    "stdout",
                    "file",
                    "otlp"
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "trustedProxyCIDRs": {
                  "description": "TrustedProxyCIDRs lists the proxies in front of the router (an\ningress, a gateway) whose X-Forwarded-For is believed, as CIDRs or\nsingle addresses. Any client can send X-Forwarded-For, so with this\nunset the header is ignored and client is always the TCP peer.\nRequires logClientAddress. The controller validates the entries.",
                  "items": {
                    "maxLength": 50,
                    "type": "string"
                  },
                  "maxItems": 32,
                  "type": [
                    "array",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "auth": {
              "additionalProperties": false,
              "description": "Auth configures request authentication. In dataPlane: Gateway mode it\ncompiles to an Envoy AI Gateway SecurityPolicy that validates inbound JWTs\nand maps a verified claim onto a trusted header before any model dispatch.\nnil means no authentication is enforced. Authentication only; per-team\nmodel allowlists (authorization) are a separate surface.",
              "properties": {
                "allowlists": {
                  "description": "Allowlists restricts which verified team may reach which model\n(authorization), as a sibling of JWT (authentication). Each entry grants a\nteam the models it may reach. JWT proves identity; Allowlists decide what\nthat identity is permitted to do.\n\nEmpty or nil means NO authorization is enforced: any authenticated request\nreaches any model (the authentication-only behavior of slice 2d-core, so\nadding this field cannot retroactively lock out an existing router). A\nnon-empty Allowlists flips the generated SecurityPolicy to default-Deny:\nonly the named teams (and, per entry, only their listed models) are\nallowed, and every other verified team is rejected with HTTP 403.\n\nAuthorization requires authentication: Allowlists set without JWT is\nrejected fail-loud (you cannot authorize on an unverified claim), as is an\nentry with an empty Team or a duplicate Team. In dataPlane: Gateway mode\nthese compile to the authorization block of the SAME SecurityPolicy JWT\ngenerates: one Allow rule per entry whose principal matches the verified\nTeamClaim value (and, when the entry lists models, the resolved\nx-ai-eg-model header).",
                  "items": {
                    "additionalProperties": false,
                    "description": "TeamModelAllowlist grants one verified team access to a set of models. It is\nthe unit of the router's authorization surface (RouterAuthSpec.Allowlists),\ncompiled into one Allow rule of the SecurityPolicy authorization block in\ndataPlane: Gateway mode.",
                    "properties": {
                      "models": {
                        "description": "Models is the set of model names this team may reach. Empty means the\nteam may reach all models (identity-only allow). Each value matches the\nresolved model name (the x-ai-eg-model header), the same value\nspec.rules[].match.models route on.",
                        "items": {
                          "type": "string"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "team": {
                        "description": "Team is the verified teamClaim value this entry grants access to.",
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "team"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "jwt": {
                  "additionalProperties": false,
                  "description": "JWT enables JSON Web Token validation. When set (in dataPlane: Gateway\nmode) the gateway rejects requests without a valid token with HTTP 401\nbefore any model dispatch, and maps the configured claim onto a trusted\nheader.",
                  "properties": {
                    "headerKey": {
                      "description": "HeaderKey is the request header the verified TeamClaim value lands in.\nDownstream team-scoped budgets key on this header. Defaults to\n\"x-llmkube-team\", matching the budget default.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "description": "Issuer is the OIDC issuer URL that must match the token's \"iss\" claim.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "jwksURI": {
                      "description": "JWKSURI is the remote JWKS endpoint the gateway fetches signing keys from\nto verify token signatures.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "provider": {
                      "description": "Provider is a short name for the JWT provider (e.g. \"keycloak\"). It labels\nthe provider in the generated SecurityPolicy.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "teamClaim": {
                      "description": "TeamClaim is the JWT claim that identifies the tenant (e.g. \"team\"). Its\nverified value is copied into HeaderKey.",
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "issuer",
                    "jwksURI",
                    "provider",
                    "teamClaim"
                  ],
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "budgets": {
              "description": "Budgets caps token and dollar consumption per scope over a rolling\nwindow. Empty list means no budget enforcement.",
              "items": {
                "additionalProperties": false,
                "description": "BudgetSpec defines a token or dollar cap over a rolling window.",
                "properties": {
                  "headerKey": {
                    "description": "HeaderKey is the request header carrying the team identifier when\nScope=team. Defaults to \"x-llmkube-team\".",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "maxTokens": {
                    "description": "MaxTokens caps total tokens (prompt + completion) over the window.\nEither MaxTokens or MaxUSD (or both) must be set.",
                    "format": "int64",
                    "minimum": 1,
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "maxUSD": {
                    "description": "MaxUSD caps total estimated cost in USD over the window. Cost is\ncomputed from RouterBackend.CostPerMillionTokens.",
                    "pattern": "^[0-9]+(\\.[0-9]+)?$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "description": "Name identifies this budget for metrics, status, and audit logs.",
                    "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
                    "type": "string"
                  },
                  "ruleName": {
                    "description": "RuleName is required when Scope=rule. References a RouterRule.Name.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "scope": {
                    "description": "Scope determines what the budget applies to.\n\"router\" caps all traffic through this ModelRouter.\n\"rule\" caps traffic matching a single named rule (see RuleName).\n\"team\" caps traffic identified by a request header (see HeaderKey).",
                    "enum": [
                      "router",
                      "rule",
                      "team"
                    ],
                    "type": "string"
                  },
                  "windowSeconds": {
                    "default": 3600,
                    "description": "WindowSeconds is the rolling window over which the cap is evaluated.",
                    "format": "int32",
                    "minimum": 1,
                    "type": [
                      "integer",
                      "null"
                    ]
                  }
                },
                "required": [
                  "name",
                  "scope"
                ],
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "classification": {
              "additionalProperties": false,
              "description": "Classification configures how the router determines the data\nclassification of an inbound request.",
              "properties": {
                "headerKey": {
                  "description": "HeaderKey is the request header carrying the classification.\nDefaults to \"x-llmkube-classification\".",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "mode": {
                  "default": "header-only",
                  "description": "Mode determines how the router determines a request's\nclassification.\n\"header-only\" (default) trusts the request header\n  (HeaderKey, defaults to x-llmkube-classification) and never reads\n  a classification from the request body. It is the only implemented\n  mode.\n\"detector\" and \"hybrid\" are reserved for a future in-proxy content\n  classifier (#441) and are refused today. On dataPlane: Proxy the\n  webhook rejects them and a router that sets either is not\n  Validated (reason ClassifierNotImplemented when nothing else in the\n  spec is invalid). On dataPlane: Gateway and AgentGateway a\n  dataClassification match under either is refused.",
                  "enum": [
                    "header-only",
                    "detector",
                    "hybrid"
                  ],
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sensitiveClassifications": {
                  "description": "SensitiveClassifications are the classification values that trigger\nfail-closed validation: any rule matching one of these values must\nhave FailClosed=true and reference only local-tier backends.\nDefaults to [\"pii\", \"phi\"].",
                  "items": {
                    "type": "string"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "proxy": {
          "additionalProperties": false,
          "description": "Proxy configures the managed router-proxy Deployment (replicas,\nimage override for air-gapped sites, resources) and the name of its\nService. Sensible defaults apply when omitted.",
          "properties": {
            "affinity": {
              "additionalProperties": false,
              "description": "Affinity is passed through to the router-proxy pod, for node affinity\nor pod anti-affinity against the proxy's own replicas. The proxy pods\ncarry the stable labels app: \u003crouter\u003e-router-proxy and\ninference.llmkube.dev/model-router: \u003crouter\u003e to select on.",
              "properties": {
                "nodeAffinity": {
                  "additionalProperties": false,
                  "description": "Describes node affinity scheduling rules for the pod.",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.",
                      "items": {
                        "additionalProperties": false,
                        "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).",
                        "properties": {
                          "preference": {
                            "additionalProperties": false,
                            "description": "A node selector term, associated with the corresponding weight.",
                            "properties": {
                              "matchExpressions": {
                                "description": "A list of node selector requirements by node's labels.",
                                "items": {
                                  "additionalProperties": false,
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.",
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.",
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "x-kubernetes-list-type": "atomic"
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "type": "object"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "matchFields": {
                                "description": "A list of node selector requirements by node's fields.",
                                "items": {
                                  "additionalProperties": false,
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.",
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.",
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "x-kubernetes-list-type": "atomic"
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "type": "object"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              }
                            },
                            "type": "object",
                            "x-kubernetes-map-type": "atomic"
                          },
                          "weight": {
                            "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.",
                            "format": "int32",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "preference",
                          "weight"
                        ],
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-type": "atomic"
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "additionalProperties": false,
                      "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.",
                      "properties": {
                        "nodeSelectorTerms": {
                          "description": "Required. A list of node selector terms. The terms are ORed.",
                          "items": {
                            "additionalProperties": false,
                            "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.",
                            "properties": {
                              "matchExpressions": {
                                "description": "A list of node selector requirements by node's labels.",
                                "items": {
                                  "additionalProperties": false,
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.",
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.",
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "x-kubernetes-list-type": "atomic"
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "type": "object"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "matchFields": {
                                "description": "A list of node selector requirements by node's fields.",
                                "items": {
                                  "additionalProperties": false,
                                  "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.",
                                  "properties": {
                                    "key": {
                                      "description": "The label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.",
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "x-kubernetes-list-type": "atomic"
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "type": "object"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              }
                            },
                            "type": "object",
                            "x-kubernetes-map-type": "atomic"
                          },
                          "type": "array",
                          "x-kubernetes-list-type": "atomic"
                        }
                      },
                      "required": [
                        "nodeSelectorTerms"
                      ],
                      "type": [
                        "object",
                        "null"
                      ],
                      "x-kubernetes-map-type": "atomic"
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "podAffinity": {
                  "additionalProperties": false,
                  "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.",
                      "items": {
                        "additionalProperties": false,
                        "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
                        "properties": {
                          "podAffinityTerm": {
                            "additionalProperties": false,
                            "description": "Required. A pod affinity term, associated with the corresponding weight.",
                            "properties": {
                              "labelSelector": {
                                "additionalProperties": false,
                                "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.",
                                "properties": {
                                  "matchExpressions": {
                                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                                      "properties": {
                                        "key": {
                                          "description": "key is the label key that the selector applies to.",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                          "type": "string"
                                        },
                                        "values": {
                                          "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": [
                                            "array",
                                            "null"
                                          ],
                                          "x-kubernetes-list-type": "atomic"
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "operator"
                                      ],
                                      "type": "object"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "matchLabels": {
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-map-type": "atomic"
                              },
                              "matchLabelKeys": {
                                "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.",
                                "items": {
                                  "type": "string"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "mismatchLabelKeys": {
                                "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.",
                                "items": {
                                  "type": "string"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "namespaceSelector": {
                                "additionalProperties": false,
                                "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.",
                                "properties": {
                                  "matchExpressions": {
                                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                                      "properties": {
                                        "key": {
                                          "description": "key is the label key that the selector applies to.",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                          "type": "string"
                                        },
                                        "values": {
                                          "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": [
                                            "array",
                                            "null"
                                          ],
                                          "x-kubernetes-list-type": "atomic"
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "operator"
                                      ],
                                      "type": "object"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "matchLabels": {
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-map-type": "atomic"
                              },
                              "namespaces": {
                                "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".",
                                "items": {
                                  "type": "string"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "topologyKey": {
                                "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "topologyKey"
                            ],
                            "type": "object"
                          },
                          "weight": {
                            "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.",
                            "format": "int32",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "podAffinityTerm",
                          "weight"
                        ],
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-type": "atomic"
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key \u003ctopologyKey\u003e matches that of any node on which\na pod of the set of pods is running",
                        "properties": {
                          "labelSelector": {
                            "additionalProperties": false,
                            "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.",
                            "properties": {
                              "matchExpressions": {
                                "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                "items": {
                                  "additionalProperties": false,
                                  "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                                  "properties": {
                                    "key": {
                                      "description": "key is the label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "x-kubernetes-list-type": "atomic"
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "type": "object"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "matchLabels": {
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-map-type": "atomic"
                          },
                          "matchLabelKeys": {
                            "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.",
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ],
                            "x-kubernetes-list-type": "atomic"
                          },
                          "mismatchLabelKeys": {
                            "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.",
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ],
                            "x-kubernetes-list-type": "atomic"
                          },
                          "namespaceSelector": {
                            "additionalProperties": false,
                            "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.",
                            "properties": {
                              "matchExpressions": {
                                "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                "items": {
                                  "additionalProperties": false,
                                  "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                                  "properties": {
                                    "key": {
                                      "description": "key is the label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "x-kubernetes-list-type": "atomic"
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "type": "object"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "matchLabels": {
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-map-type": "atomic"
                          },
                          "namespaces": {
                            "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".",
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ],
                            "x-kubernetes-list-type": "atomic"
                          },
                          "topologyKey": {
                            "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "topologyKey"
                        ],
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-type": "atomic"
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "podAntiAffinity": {
                  "additionalProperties": false,
                  "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).",
                  "properties": {
                    "preferredDuringSchedulingIgnoredDuringExecution": {
                      "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and subtracting\n\"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.",
                      "items": {
                        "additionalProperties": false,
                        "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
                        "properties": {
                          "podAffinityTerm": {
                            "additionalProperties": false,
                            "description": "Required. A pod affinity term, associated with the corresponding weight.",
                            "properties": {
                              "labelSelector": {
                                "additionalProperties": false,
                                "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.",
                                "properties": {
                                  "matchExpressions": {
                                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                                      "properties": {
                                        "key": {
                                          "description": "key is the label key that the selector applies to.",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                          "type": "string"
                                        },
                                        "values": {
                                          "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": [
                                            "array",
                                            "null"
                                          ],
                                          "x-kubernetes-list-type": "atomic"
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "operator"
                                      ],
                                      "type": "object"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "matchLabels": {
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-map-type": "atomic"
                              },
                              "matchLabelKeys": {
                                "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.",
                                "items": {
                                  "type": "string"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "mismatchLabelKeys": {
                                "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.",
                                "items": {
                                  "type": "string"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "namespaceSelector": {
                                "additionalProperties": false,
                                "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.",
                                "properties": {
                                  "matchExpressions": {
                                    "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                    "items": {
                                      "additionalProperties": false,
                                      "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                                      "properties": {
                                        "key": {
                                          "description": "key is the label key that the selector applies to.",
                                          "type": "string"
                                        },
                                        "operator": {
                                          "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                          "type": "string"
                                        },
                                        "values": {
                                          "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                          "items": {
                                            "type": "string"
                                          },
                                          "type": [
                                            "array",
                                            "null"
                                          ],
                                          "x-kubernetes-list-type": "atomic"
                                        }
                                      },
                                      "required": [
                                        "key",
                                        "operator"
                                      ],
                                      "type": "object"
                                    },
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "x-kubernetes-list-type": "atomic"
                                  },
                                  "matchLabels": {
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                    "type": [
                                      "object",
                                      "null"
                                    ]
                                  }
                                },
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "x-kubernetes-map-type": "atomic"
                              },
                              "namespaces": {
                                "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".",
                                "items": {
                                  "type": "string"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "topologyKey": {
                                "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "topologyKey"
                            ],
                            "type": "object"
                          },
                          "weight": {
                            "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.",
                            "format": "int32",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "podAffinityTerm",
                          "weight"
                        ],
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-type": "atomic"
                    },
                    "requiredDuringSchedulingIgnoredDuringExecution": {
                      "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key \u003ctopologyKey\u003e matches that of any node on which\na pod of the set of pods is running",
                        "properties": {
                          "labelSelector": {
                            "additionalProperties": false,
                            "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.",
                            "properties": {
                              "matchExpressions": {
                                "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                "items": {
                                  "additionalProperties": false,
                                  "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                                  "properties": {
                                    "key": {
                                      "description": "key is the label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "x-kubernetes-list-type": "atomic"
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "type": "object"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "matchLabels": {
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-map-type": "atomic"
                          },
                          "matchLabelKeys": {
                            "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.",
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ],
                            "x-kubernetes-list-type": "atomic"
                          },
                          "mismatchLabelKeys": {
                            "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.",
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ],
                            "x-kubernetes-list-type": "atomic"
                          },
                          "namespaceSelector": {
                            "additionalProperties": false,
                            "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.",
                            "properties": {
                              "matchExpressions": {
                                "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                                "items": {
                                  "additionalProperties": false,
                                  "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                                  "properties": {
                                    "key": {
                                      "description": "key is the label key that the selector applies to.",
                                      "type": "string"
                                    },
                                    "operator": {
                                      "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                                      "type": "string"
                                    },
                                    "values": {
                                      "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                                      "items": {
                                        "type": "string"
                                      },
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "x-kubernetes-list-type": "atomic"
                                    }
                                  },
                                  "required": [
                                    "key",
                                    "operator"
                                  ],
                                  "type": "object"
                                },
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "x-kubernetes-list-type": "atomic"
                              },
                              "matchLabels": {
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                                "type": [
                                  "object",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ],
                            "x-kubernetes-map-type": "atomic"
                          },
                          "namespaces": {
                            "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".",
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ],
                            "x-kubernetes-list-type": "atomic"
                          },
                          "topologyKey": {
                            "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "topologyKey"
                        ],
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ],
                      "x-kubernetes-list-type": "atomic"
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "drainTimeout": {
              "description": "DrainTimeout is how long a router-proxy replica keeps serving its\nin-flight requests after SIGTERM, so a rollout finishes the streams\nit holds instead of cutting them at the proxy's own default. It\nsets the proxy's --shutdown-timeout and the pod's\nterminationGracePeriodSeconds, which is this value plus a fixed\n5s margin so the kubelet does not SIGKILL before the drain ends.\nA stream longer than this still ends at the drain deadline. The\nproxy's default of 30s applies when unset, and nothing is rendered\non the pod template, so an operator upgrade does not roll existing\nproxies. Changing it changes the pod template, so it rolls the\nproxy pods, and a replica that drains stays Terminating for up to\nthis long, delaying that roll. Must be between 1s and 1h.",
              "type": [
                "string",
                "null"
              ],
              "x-kubernetes-validations": [
                {
                  "message": "drainTimeout must be between 1s and 1h",
                  "rule": "duration(self) \u003e= duration('1s') \u0026\u0026 duration(self) \u003c= duration('1h')"
                }
              ]
            },
            "image": {
              "description": "Image overrides the default router-proxy container image. Useful\nfor air-gapped clusters that pin to an internal registry digest.",
              "type": [
                "string",
                "null"
              ]
            },
            "imagePullSecrets": {
              "description": "ImagePullSecrets are passed through to the router-proxy pod spec.",
              "items": {
                "additionalProperties": false,
                "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.",
                "properties": {
                  "name": {
                    "default": "",
                    "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object",
                "x-kubernetes-map-type": "atomic"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "nodeSelector": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "NodeSelector pins the router-proxy pod to nodes matching these labels.\nUse it when the proxy image is only present on specific nodes (for\nexample a node-local registry) or to co-locate the proxy with its\nbackends. Passthrough to the Pod spec.",
              "type": [
                "object",
                "null"
              ]
            },
            "podAnnotations": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "PodAnnotations are merged into the router-proxy pod's\nmetadata.annotations. The operator's own annotations (the config hash,\nand the prometheus.io scrape annotations when the operator emits them)\nwin on collision. An annotation removed here is removed from the pods;\nannotations other tools add are kept.",
              "type": [
                "object",
                "null"
              ]
            },
            "podLabels": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "PodLabels are merged into the router-proxy pod's metadata.labels, for\nexample so label-based NetworkPolicies select the proxy. The operator's\nown labels (app, inference.llmkube.dev/model-router) win on collision,\nand the Deployment and Service selectors use only those, so changing\nPodLabels rolls the pods without touching a selector. A label removed\nhere is removed from the pods; labels other tools add are kept.",
              "type": [
                "object",
                "null"
              ]
            },
            "quarantineDuration": {
              "description": "QuarantineDuration controls how long the proxy keeps a backend in\nthe \"skip\" state after a 5xx or network error before allowing a\nhalf-open probe. A pod of an endpoint-resolution backend is\nquarantined after two such failures in a row, or at once when a\nstream goes silent past streamIdleTimeout. Default 15s when unset. Shorter windows make the\nproxy recover faster from transient blips; longer windows reduce\nprobe load on genuinely-down upstreams. Tests can shrink this to\nsub-second to verify recovery without sleeping the full default.",
              "type": [
                "string",
                "null"
              ]
            },
            "readinessRequiredListeners": {
              "description": "ReadinessRequiredListeners lists TCP ports that must have a LISTEN\nsocket in the proxy pod's network namespace before the replica is\nReady, for example [15008] for Istio ambient's HBONE inbound port, so a\nreplica the mesh cannot reach leaves the Service endpoints. When set,\nthe readiness probe moves to /readyz; liveness stays on /health. If the\nproxy cannot read /proc/net/tcp it reports Ready and logs a warning.\nUnset renders nothing on the pod template.",
              "items": {
                "format": "int32",
                "maximum": 65535,
                "minimum": 1,
                "type": "integer"
              },
              "maxItems": 16,
              "type": [
                "array",
                "null"
              ],
              "x-kubernetes-list-type": "set"
            },
            "replicas": {
              "description": "Replicas is the desired number of router-proxy pods. Defaults to 1.\nThe proxy is stateless for routing decisions; budget and SLO\ncounters live in memory and reset on pod restart until the\npersistence feature lands.\n\nWhen any backend resolves to a ModelPool member, the operator pins\nthis to 1 regardless of the value set here: ModelPool activation\nserializes swaps through a single in-process lock, so a second proxy\nreplica would race it and thrash the shared GPU slot. Multi-replica\npooled routers need cross-replica swap coordination (a lease), tracked\nas a follow-up.",
              "format": "int32",
              "maximum": 10,
              "minimum": 1,
              "type": [
                "integer",
                "null"
              ]
            },
            "resources": {
              "additionalProperties": false,
              "description": "Resources sets the pod's compute resource requests and limits.",
              "properties": {
                "claims": {
                  "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis field depends on the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.",
                  "items": {
                    "additionalProperties": false,
                    "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.",
                    "properties": {
                      "name": {
                        "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.",
                        "type": "string"
                      },
                      "request": {
                        "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ],
                  "x-kubernetes-list-map-keys": [
                    "name"
                  ],
                  "x-kubernetes-list-type": "map"
                },
                "limits": {
                  "additionalProperties": {
                    "oneOf": [
                      {
                        "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                        "type": "string"
                      },
                      {
                        "type": "integer"
                      }
                    ],
                    "x-kubernetes-int-or-string": true
                  },
                  "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "requests": {
                  "additionalProperties": {
                    "oneOf": [
                      {
                        "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                        "type": "string"
                      },
                      {
                        "type": "integer"
                      }
                    ],
                    "x-kubernetes-int-or-string": true
                  },
                  "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "responseHeaderTimeout": {
              "description": "ResponseHeaderTimeout caps how long the proxy waits for the\nupstream to begin sending response headers. For non-streaming\nchat completions this is effectively a max-generation-time\ncap, because their headers arrive when generation completes. It\ndoes not bound a streaming response once its headers arrive;\nStreamIdleTimeout guards those. Default 120s when unset.\nPer-rule and per-backend timeouts (see RouterRule.Timeout and\nRouterBackend.Timeout) tighten this on a per-request basis but\ncannot extend it beyond this cap.",
              "type": [
                "string",
                "null"
              ]
            },
            "revisionHistoryLimit": {
              "description": "RevisionHistoryLimit caps how many old ReplicaSets the proxy Deployment\nkeeps for rollback. Unset keeps 3 old ReplicaSets; 0 keeps none.\nUseful to bound ReplicaSet buildup, since the proxy re-rolls on every\nconfig change.",
              "format": "int32",
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "runtimeClassName": {
              "description": "RuntimeClassName selects a Kubernetes RuntimeClass for the router-proxy\npod, for example a sandboxed runtime such as gVisor or Kata. Maps\ndirectly to PodSpec.RuntimeClassName. A RuntimeClass with a scheduling\nsection has its node selector and tolerations merged into the pod by the\nRuntimeClass admission controller, so no separate fields are needed.\nUnset leaves the pod spec unchanged.",
              "type": [
                "string",
                "null"
              ]
            },
            "serviceName": {
              "description": "ServiceName names the data-plane Service in front of the router-proxy\npods, so clients can use a short in-cluster URL such as\nhttp://llmkube.\u003cnamespace\u003e.svc.cluster.local/v1 (with endpoint.port 80).\nUnset keeps the generated name, \u003crouter\u003e-router-proxy. Only that Service\ntakes this name: the Deployment, ConfigMap, admin Service\n(\u003crouter\u003e-router-proxy-admin), pod labels, and selectors keep their\ngenerated names, so changing it does not roll the proxy pods.\nstatus.endpoint follows the Service.\n\nA Service with this name that this ModelRouter does not control is never\nadopted or overwritten: the router reports RouterProxyNameTaken and keeps\nits previous Service. When the name changes (including back to unset),\nthe previous Service this ModelRouter controls is deleted only after the\nnew one exists. Clients of the old name must move, and a NodePort the\ncluster allocated or a LoadBalancer address is reassigned (a pinned\nendpoint.nodePort is carried over). Must be a DNS-1035 label and must not\nequal the admin Service's name. Ignored unless dataPlane is Proxy.",
              "maxLength": 63,
              "pattern": "^[a-z]([-a-z0-9]*[a-z0-9])?$",
              "type": [
                "string",
                "null"
              ]
            },
            "streamIdleTimeout": {
              "description": "StreamIdleTimeout caps how long a response body may go without a\nsingle byte from the upstream once its headers have arrived. A\nhealthy stream emits bytes continuously; the longest gap is the\nprefill before the first content token, which can take minutes\nfor a very long prompt on slow hardware. When the window passes\nwith no bytes, the proxy aborts the request and quarantines that\nbackend endpoint, so a wedged replica stops receiving traffic.\nDefault 300s when unset; \"0s\" disables the guard.",
              "type": [
                "string",
                "null"
              ]
            },
            "tolerations": {
              "description": "Tolerations are applied to the router-proxy pod, so it can be pinned\nnext to tainted GPU nodes together with nodeSelector.",
              "items": {
                "additionalProperties": false,
                "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple \u003ckey,value,effect\u003e using the matching operator \u003coperator\u003e.",
                "properties": {
                  "effect": {
                    "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "key": {
                    "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "operator": {
                    "description": "Operator represents a key's relationship to the value.\nValid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.\nLt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "tolerationSeconds": {
                    "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.",
                    "format": "int64",
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "value": {
                    "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "topologySpreadConstraints": {
              "description": "TopologySpreadConstraints are passed through to the router-proxy pod,\nfor example one replica per node with topologyKey\nkubernetes.io/hostname and the labels above. When replicas is more\nthan 1 and a constraint uses whenUnsatisfiable: DoNotSchedule (or the\naffinity requires pod anti-affinity), the proxy rolls out with\nmaxSurge 0 and maxUnavailable 1, because a surge pod could never be\nplaced.",
              "items": {
                "additionalProperties": false,
                "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.",
                "properties": {
                  "labelSelector": {
                    "additionalProperties": false,
                    "description": "LabelSelector is used to find matching pods.\nPods that match this label selector are counted to determine the number of pods\nin their corresponding topology domain.",
                    "properties": {
                      "matchExpressions": {
                        "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
                        "items": {
                          "additionalProperties": false,
                          "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
                          "properties": {
                            "key": {
                              "description": "key is the label key that the selector applies to.",
                              "type": "string"
                            },
                            "operator": {
                              "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
                              "type": "string"
                            },
                            "values": {
                              "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.",
                              "items": {
                                "type": "string"
                              },
                              "type": [
                                "array",
                                "null"
                              ],
                              "x-kubernetes-list-type": "atomic"
                            }
                          },
                          "required": [
                            "key",
                            "operator"
                          ],
                          "type": "object"
                        },
                        "type": [
                          "array",
                          "null"
                        ],
                        "x-kubernetes-list-type": "atomic"
                      },
                      "matchLabels": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
                        "type": [
                          "object",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ],
                    "x-kubernetes-map-type": "atomic"
                  },
                  "matchLabelKeys": {
                    "description": "MatchLabelKeys is a set of pod label keys to select the pods over which\nspreading will be calculated. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are ANDed with labelSelector\nto select the group of existing pods over which spreading will be calculated\nfor the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.\nMatchLabelKeys cannot be set when LabelSelector isn't set.\nKeys that don't exist in the incoming pod labels will\nbe ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).",
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ],
                    "x-kubernetes-list-type": "atomic"
                  },
                  "maxSkew": {
                    "description": "MaxSkew describes the degree to which pods may be unevenly distributed.\nWhen `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference\nbetween the number of matching pods in the target topology and the global minimum.\nThe global minimum is the minimum number of matching pods in an eligible domain\nor zero if the number of eligible domains is less than MinDomains.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 2/2/1:\nIn this case, the global minimum is 1.\n| zone1 | zone2 | zone3 |\n|  P P  |  P P  |   P   |\n- if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;\nscheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)\nviolate MaxSkew(1).\n- if MaxSkew is 2, incoming pod can be scheduled onto any zone.\nWhen `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence\nto topologies that satisfy it.\nIt's a required field. Default value is 1 and 0 is not allowed.",
                    "format": "int32",
                    "type": "integer"
                  },
                  "minDomains": {
                    "description": "MinDomains indicates a minimum number of eligible domains.\nWhen the number of eligible domains with matching topology keys is less than minDomains,\nPod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed.\nAnd when the number of eligible domains with matching topology keys equals or greater than minDomains,\nthis value has no effect on scheduling.\nAs a result, when the number of eligible domains is less than minDomains,\nscheduler won't schedule more than maxSkew Pods to those domains.\nIf value is nil, the constraint behaves as if MinDomains is equal to 1.\nValid values are integers greater than 0.\nWhen value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same\nlabelSelector spread as 2/2/2:\n| zone1 | zone2 | zone3 |\n|  P P  |  P P  |  P P  |\nThe number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0.\nIn this situation, new pod with the same labelSelector cannot be scheduled,\nbecause computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,\nit will violate MaxSkew.",
                    "format": "int32",
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "nodeAffinityPolicy": {
                    "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector\nwhen calculating pod topology spread skew. Options are:\n- Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.\n- Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "nodeTaintsPolicy": {
                    "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating\npod topology spread skew. Options are:\n- Honor: nodes without taints, along with tainted nodes for which the incoming pod\nhas a toleration, are included.\n- Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "topologyKey": {
                    "description": "TopologyKey is the key of node labels. Nodes that have a label with this key\nand identical values are considered to be in the same topology.\nWe consider each \u003ckey, value\u003e as a \"bucket\", and try to put balanced number\nof pods into each bucket.\nWe define a domain as a particular instance of a topology.\nAlso, we define an eligible domain as a domain whose nodes meet the requirements of\nnodeAffinityPolicy and nodeTaintsPolicy.\ne.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology.\nAnd, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology.\nIt's a required field.",
                    "type": "string"
                  },
                  "whenUnsatisfiable": {
                    "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy\nthe spread constraint.\n- DoNotSchedule (default) tells the scheduler not to schedule it.\n- ScheduleAnyway tells the scheduler to schedule the pod in any location,\n  but giving higher precedence to topologies that would help reduce the\n  skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod\nif and only if every possible node assignment for that pod would violate\n\"MaxSkew\" on some topology.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 3/1/1:\n| zone1 | zone2 | zone3 |\n| P P P |   P   |   P   |\nIf WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled\nto zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies\nMaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler\nwon't make it *more* imbalanced.\nIt's a required field.",
                    "type": "string"
                  }
                },
                "required": [
                  "maxSkew",
                  "topologyKey",
                  "whenUnsatisfiable"
                ],
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "rules": {
          "description": "Rules are evaluated in declaration order. The first matching rule wins.\nIf no rule matches, the fallback is governed by DefaultRouteStrategy,\nending at DefaultRoute. If nothing resolves, the request is rejected\nwith HTTP 503.",
          "items": {
            "additionalProperties": false,
            "description": "RouterRule pairs a match expression with a routing action.",
            "properties": {
              "failClosed": {
                "description": "FailClosed: when true, if no backend in Route.Backends is healthy\nor otherwise eligible, the router rejects the request with HTTP 503\nrather than falling through to DefaultRoute or subsequent rules.\nThis is the regulated-data gate: a fail-closed rule guarantees that\nmatched requests are never served by any other route.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "match": {
                "additionalProperties": false,
                "description": "Match groups all match conditions. All declared conditions must be\ntrue for the rule to fire (AND semantics). If Match is omitted the\nrule always matches (useful as a catch-all before DefaultRoute).",
                "properties": {
                  "dataClassification": {
                    "description": "DataClassification matches if the inbound request carries any of\nthese classifications. The classification is the value of the\nrequest header named by Policy.Classification.HeaderKey\n(x-llmkube-classification by default); the router does not classify\nthe request body, so a request without the header matches no\ndataClassification rule. Common values: \"public\", \"internal\",\n\"confidential\", \"pii\", \"phi\".",
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "headers": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Headers performs exact-match equality on inbound HTTP headers\n(case-insensitive header name comparison).",
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "latencySLOMs": {
                    "description": "LatencySLOMs is a P95 first-token-latency target in milliseconds.\nWhen set, if the rolling P95 for the primary backend exceeds this\nvalue the rule promotes its declared fallback. Honored only by the\n\"primary-fallback\" strategy.",
                    "format": "int32",
                    "minimum": 1,
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "models": {
                    "description": "Models matches against the OpenAI-style \"model\" field in the\nrequest body. Glob patterns are supported (e.g. \"qwen3-*\").",
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "requiredCapabilities": {
                    "description": "RequiredCapabilities filters backends. The rule only matches if at\nleast one backend in Route.Backends advertises every listed\ncapability, and on dataPlane: Proxy only those backends serve the\nrule's requests, under every strategy. A backend that lacks one is\nnever tried, not even as a fallback.",
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "taskComplexity": {
                    "description": "TaskComplexity matches the inbound complexity hint (header\nx-llmkube-task-complexity).",
                    "enum": [
                      "simple",
                      "moderate",
                      "complex"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "name": {
                "description": "Name is used in audit logs and metrics labels.",
                "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
                "type": "string"
              },
              "route": {
                "additionalProperties": false,
                "description": "Route is the action taken when this rule matches.",
                "properties": {
                  "backends": {
                    "description": "Backends is an ordered list of RouterBackend.Name values. For the\n\"primary-fallback\" strategy, the first entry is the primary and\nsubsequent entries are tried in order on failure. For \"weighted\",\ntraffic is distributed across all entries by Backend.Weight. For\n\"shadow\", the first entry serves the response (falling back in order\nas primary-fallback does) and the entries after the one that served\nreceive mirrored copies for evaluation only; it needs at least two.",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "poolActivation": {
                    "default": "Wait",
                    "description": "PoolActivation decides what the proxy does when a backend in\nBackends is a ModelPool member that is not resident and the resident\nmember is busy. \"Wait\" (default) holds the request open until the\nincumbent drains and the target loads, bounded by the pool's\nswapBudget. \"IfIdle\" only starts a swap when the incumbent is idle;\nwhile it is busy the pooled backend is skipped immediately and the\nrequest falls through to the next entry in Backends, so a rule such\nas [preferred-model, resident-model] serves on whichever is warm\ninstead of queueing behind in-flight work. Non-pooled backends and\nsame-model requests are unaffected.",
                    "enum": [
                      "Wait",
                      "IfIdle"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "strategy": {
                    "default": "primary-fallback",
                    "description": "Strategy selects how multiple backends are used. On dataPlane: Proxy,\nweighted picks a backend per request in proportion to its weight among\nthe rule's backends that are healthy, not quarantined and advertise\nevery required capability; a request that fails on it fails over to\nanother backend of the rule picked the same way, never the same one\ntwice. A weighted rule there cannot name two members of one ModelPool,\nsince they share one GPU slot and would swap on every other request.\nshadow serves the client exactly as primary-fallback does and sends a\ncopy of each request, marked x-llmkube-shadow: true, to the rule's\nother healthy backends after the one that served; their responses are\ndiscarded, their failures never quarantine them, and they are not\ncharged to budgets. Copies are best effort: at most 4 run at once per\nbackend and the rest are dropped and counted. An external backend that\nis a shadow target receives, and bills, every request. A shadow target\ncannot be a ModelPool member. dataPlane: Gateway rejects shadow. On dataPlane:\nAgentGateway only primary-fallback compiles, and a rule routes to its\nfirst healthy backend: when that backend's InferenceService has no\nready replica, the next reconcile moves the rule to the next backend.\nFailover there follows replica readiness, not individual request errors.",
                    "enum": [
                      "primary-fallback",
                      "weighted",
                      "shadow"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "backends"
                ],
                "type": "object"
              },
              "timeout": {
                "description": "Timeout caps how long the proxy waits for the upstream to begin\nsending response headers on dispatches matched by this rule.\nWhen set it overrides RouterBackend.Timeout and the proxy\ndefault. Resolution order at dispatch time:\nrule.timeout || backend.timeout || proxy default.\nUseful for tightening regulated-data rules (sub-10s strict\nfail-fast) or extending long-reasoning rules (120s+).",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "route"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object",
      "x-kubernetes-validations": [
        {
          "message": "endpoint.apiKeySecretRef is an InferenceService field; ModelRouter does not support it",
          "rule": "!has(self.endpoint) || !has(self.endpoint.apiKeySecretRef)"
        },
        {
          "message": "spec must set backendSelector or at least one backends entry",
          "rule": "has(self.backendSelector) || (has(self.backends) \u0026\u0026 self.backends.size() \u003e 0)"
        }
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "status defines the observed state of ModelRouter",
      "properties": {
        "activeRules": {
          "description": "ActiveRules is the count of rules that successfully validated\nagainst current backend state.",
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "agentGateway": {
          "additionalProperties": false,
          "description": "AgentGateway reports the observed state of dataPlane: AgentGateway\nexposure: whether the InferencePool / HTTPRoute / model-extraction\nAgentgatewayPolicy reconciled\nagainst the referenced agentgateway Gateway, and the resolved endpoint.\nnil in Proxy and Gateway modes. Also surfaced via the AgentGatewayReady\ncondition.",
          "properties": {
            "endpoint": {
              "description": "Endpoint is the agentgateway address clients send OpenAI requests to,\nresolved from the referenced Gateway. Empty until the pool is ready.",
              "type": [
                "string",
                "null"
              ]
            },
            "poolReady": {
              "description": "PoolReady indicates the generated InferencePool(s) reconciled against the\nreferenced agentgateway Gateway.",
              "type": [
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "backends": {
          "description": "Backends reports the resolved address and current health of every\ndeclared backend.",
          "items": {
            "additionalProperties": false,
            "description": "BackendStatus reports the runtime state of one declared backend.",
            "properties": {
              "address": {
                "description": "Address is the resolved upstream URL the router-proxy dispatches to.\nFor local backends this is the InferenceService's cluster URL; for\nexternal backends it is the provider's base URL.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "healthy": {
                "description": "Healthy reflects the most recent probe result.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "lastProbeTime": {
                "description": "LastProbeTime is when the proxy last completed a health probe for\nthis backend.",
                "format": "date-time",
                "type": [
                  "string",
                  "null"
                ]
              },
              "message": {
                "description": "Message provides extra context, especially when Healthy is false\n(e.g. \"InferenceService not Ready\", \"Secret missing key\nANTHROPIC_API_KEY\").",
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "description": "Name matches RouterBackend.Name.",
                "type": "string"
              },
              "tier": {
                "description": "Tier mirrors RouterBackend.Tier for convenience.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "budgetUtilization": {
          "description": "BudgetUtilization summarises current budget consumption.",
          "items": {
            "additionalProperties": false,
            "description": "BudgetStatus reports current consumption against a declared budget.",
            "properties": {
              "name": {
                "description": "Name matches BudgetSpec.Name.",
                "type": "string"
              },
              "tokensUsed": {
                "description": "TokensUsed is the rolling-window token count.",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "usdUsed": {
                "description": "USDUsed is the rolling-window estimated cost in USD.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "utilization": {
                "description": "Utilization is the fraction of the budget consumed, 0.0 to 1.0.\nWhen both MaxTokens and MaxUSD are set this is the maximum of the\ntwo utilizations.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "conditions": {
          "description": "conditions represent the current state of the ModelRouter resource.\n\nStandard condition types:\n- \"Validated\":     the spec passed static validation\n- \"BackendsReady\": all referenced backends are reachable and healthy\n- \"Available\":     the router-proxy is serving traffic\n- \"Degraded\":      at least one backend is unhealthy but the router\n                   can still serve other routes\n- \"GatewayReady\":  (dataPlane: Gateway) the gateway resources reconciled",
          "items": {
            "additionalProperties": false,
            "description": "Condition contains details for one aspect of the current state of this API Resource.",
            "properties": {
              "lastTransitionTime": {
                "description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
                "maxLength": 32768,
                "type": "string"
              },
              "observedGeneration": {
                "description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                "format": "int64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "reason": {
                "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                "type": "string"
              },
              "status": {
                "description": "status of the condition, one of True, False, Unknown.",
                "enum": [
                  "True",
                  "False",
                  "Unknown"
                ],
                "type": "string"
              },
              "type": {
                "description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
                "maxLength": 316,
                "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "message",
              "reason",
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ],
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        },
        "endpoint": {
          "description": "Endpoint is the in-cluster URL clients should hit. Populated once\nthe router-proxy Service is ready.",
          "type": [
            "string",
            "null"
          ]
        },
        "gateway": {
          "additionalProperties": false,
          "description": "Gateway reports the observed state of dataPlane: Gateway exposure: whether\nthe AIGatewayRoute (and its backing Backend / AIServiceBackend /\nBackendTrafficPolicy) reconciled, and the resolved gateway endpoint. nil\nin Proxy mode. Also surfaced via the GatewayReady condition.",
          "properties": {
            "authEnabled": {
              "description": "AuthEnabled indicates a SecurityPolicy enforcing JWT authentication was\ncompiled for this route (ModelRouter policy.auth.jwt). Set by the\nModelRouter dataPlane: Gateway path; false when no auth is configured.",
              "type": [
                "boolean",
                "null"
              ]
            },
            "endpoint": {
              "description": "Endpoint is the gateway address clients send OpenAI requests to. Set by\nthe ModelRouter dataPlane: Gateway path (resolved from the referenced\nGateway); empty for the InferenceService path.",
              "type": [
                "string",
                "null"
              ]
            },
            "modelName": {
              "description": "ModelName is the resolved model-name match value clients send as the\nOpenAI \"model\" string to reach this InferenceService through the gateway.\nSet by the InferenceService path; empty for ModelRouter (which fronts\nmany model names).",
              "type": [
                "string",
                "null"
              ]
            },
            "routeReady": {
              "description": "RouteReady indicates the AIGatewayRoute (and its backing Backend +\nAIServiceBackend) were reconciled successfully against the gateway.",
              "type": [
                "boolean",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "lastUpdated": {
          "description": "LastUpdated is the timestamp of the last status reconciliation.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "phase": {
          "description": "Phase is a coarse summary of the router's state.\nPossible values: Pending, Provisioning, Ready, Degraded, Failed.",
          "enum": [
            "Pending",
            "Provisioning",
            "Ready",
            "Degraded",
            "Failed"
          ],
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}