Skip to content

[DOCS] Document spec.pod on Gateway, Agent and MCP #1059

Closed

Description

Summary

The operator now exposes a shared spec.pod block on the Gateway, Agent and MCP CRDs, so users can shape the pods the operator creates: spec.pod.labels, spec.pod.annotations, spec.pod.nodeSelector, spec.pod.tolerations and spec.pod.affinity. Pod labels and annotations enable sidecar injection (Istio, Linkerd, NetBird), and the scheduling fields pass through to the pod spec unchanged. Operator-owned labels such as app: <name> always win, so Deployment selectors keep working.

Implemented in inference-gateway/operator#309 (closes inference-gateway/operator#308).

Affected pages: the operator CRD reference pages for Gateway, Agent and MCP, plus any scheduling / service-mesh integration guide.

Acceptance Criteria

  • Gateway, Agent and MCP reference pages document spec.pod and all five fields
  • An example shows pod labels/annotations for sidecar injection and nodeSelector/tolerations/affinity for scheduling
  • The docs note that operator-owned pod labels take precedence over spec.pod.labels

Activity

  1. added
    documentation
    on Oct 31, 2026
  2. edenreich commented on Nov 1, 2026

    @edenreich
    Contributor

    @claude can you document this? use /ponytail:ponytail first check if it's still relevant.

  3. inference-gateway-maintainer commented on Nov 1, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 27s —— View job • docs/issue-1059-20261101-1317 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1059-20261101-1317?quick_pull=1&title=Issue%20%231059%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231059%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documenting spec.pod on Gateway, Agent and MCP

    • Check the request is still relevant against the operator CRDs upstream
    • Read operator.md and find where the CRD references live
    • Document spec.pod with all five fields + precedence note
    • Validate (lint:md, format:check, build)
    • Commit and open PR

    Still relevant - yes

    api/v1alpha1/pod_types.go is on operator main with all five fields intact, and Pod *PodSpec is present on gateway_types.go, agent_types.go and mcp_types.go. orchestrator_types.go and gpu_types.go have no PodSpec, so the issue's scope of three CRDs is correct. ApplyTo still merges labels/annotations without overriding what the controller already put on the template, so the precedence claim in the acceptance criteria holds.

    What I wrote

    One shared ## Pod customization (spec.pod) section in operator.md, plus a single pod.{labels,annotations,nodeSelector,tolerations,affinity} row in each of the three CRD reference tables linking to it. Three near-identical copies of the same field table would have been the bigger diff for no reader benefit, and the page already cross-links its tables into per-topic sections this way.

    The section carries:

    • a field table with types (corev1.Toleration, corev1.Affinity for the structured two)
    • a Gateway example combining Istio/Linkerd labels and annotations with nodeSelector, a toleration and a pod anti-affinity rule
    • a shorter Agent example pinning onto a tainted GPU pool, to show the block is identical across kinds
    • the precedence paragraph: operator-owned labels such as app: <name> win so the Deployment selector keeps matching, therefore app cannot be repurposed - while the three scheduling fields replace whatever the template carried

    Validation

    bun run format:check, bun run lint:md and bun run build all pass locally.

    PR

    #1064 (board item moved to QA)

    I did not spin up a cluster to confirm the rendered behaviour - the field semantics come from reading pod_types.go, not from an applied manifest. The example YAML values (instance type, taint keys, the istio.io/dataplane-mode label) are illustrative rather than copied from a tested operator example, so treat them as shape, not as a recipe.
    | Branch

  4. moved this from Todo to In progress in 2026on Nov 1, 2026
  5. moved this from In progress to QA in 2026on Nov 1, 2026
  6. moved this from QA to Done in 2026on Nov 1, 2026
  7. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions