Skip to content

[DOCS] spec.pod sidecar containers and volumes on Gateway, Agent and MCP #1074

Closed

Description

@inference-gateway-maintainer

Summary

The operator CRDs Gateway, Agent and MCP now accept spec.pod.containers, spec.pod.initContainers and spec.pod.volumes, which add sidecar containers and volumes to the pod the operator creates. This covers sidecars with no injector, for example a Tailscale node against a Headscale control plane. The operator's own container stays first and unchanged, and a container, init container or volume name that collides with an operator-owned one fails reconciliation with an error naming the field and the name.

Implementation PR: inference-gateway/operator#317 (operator issue inference-gateway/operator#316).

Note for the install pages: embedding the Kubernetes container and volume schemas grows the CRDs substantially (the Gateway CRD is now ~542 KB, manifests/install.yaml ~1.5 MB), so installing with kubectl apply --server-side is the safe path - a client-side apply stores a second copy of the CRD in the last-applied-configuration annotation.

Acceptance Criteria

  • The operator spec.pod reference page documents containers, initContainers and volumes with a sidecar example
  • The page states that user containers are appended after the operator's container and that colliding names are rejected
  • The operator install page recommends kubectl apply --server-side for the generated manifests

Activity

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

    @edenreich
    Contributor

    @claude can you document this? use /ponytail:ponytail

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

    @inference-gateway-maintainer
    ContributorAuthor

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


    Documented spec.pod sidecars

    • Read the issue and the upstream operator PR (field semantics, validation error text, the 256 KB apply limit)
    • Documented containers, initContainers and volumes in the pod customization table plus the three CRD field summaries
    • Added a "Sidecar containers and volumes" subsection with a Tailscale/Headscale example
    • Stated the ordering (operator container stays first, user containers appended after, initContainers before it or alongside with restartPolicy: Always) and that colliding names fail reconciliation with an error naming the field and the name
    • Switched the install snippets to kubectl apply --server-side (--force-conflicts when upgrading a client-side install), added ServerSideApply=true to the ArgoCD example, noted Flux already applies server-side
    • bun run format:check, bun run lint:md, bun run build - all pass
    • Committed and opened docs(operator): spec.pod sidecar containers and volumes #1075

    All three acceptance criteria are covered in operator.md. One wording call worth a look: upstream makes --server-side required, not just recommended (a client-side apply now fails with metadata.annotations: Too long), so the install section says that rather than "recommended".

    I did not run bun run preview to eyeball the rendered page, and I did not verify the exact operator-owned volume names beyond the ones upstream's README lists (tls-certs is used as the error example) - worth a glance if you want that list exhaustive.
    | Branch | PR #1075

  4. moved this from Todo to In progress in 2026on Nov 2, 2026
  5. moved this from In progress to QA in 2026on Nov 2, 2026
  6. moved this from QA to Done in 2026on Nov 2, 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