Skip to content

docs(operator): add GPU CRD reference page with spec, status, lifecycle, and Gateway consumption example - #458

Merged
edenreich merged 3 commits into
mainfrom
fix/issue-439
Jul 22, 2026
Merged

edenreich merged 3 commits into
mainfrom
fix/issue-439

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #439

Summary

Documents the new GPU custom resource (core.inference-gateway.com/v1alpha1) for leasing cloud GPU-backed inference runtimes via a pluggable provider interface. Adds a dedicated GPU CRD reference page covering spec fields, status fields, the full lifecycle state machine, readiness semantics, maxRuntime/Expired behavior, and an example showing a Gateway consuming the generated connection Secret.

Changes

  • Add gpu.md - new GPU CRD reference page with spec table (provider, credentialsRef, image, command, gpuTypes, endpoint.port, endpoint.readinessPath, maxRuntime), status table (phase, instanceID, url, connectionSecretRef, startedAt, expiresAt, Ready condition), connection Secret details, Mermaid lifecycle state diagram, readiness and expiration semantics, and a full YAML example of a Gateway consuming the connection Secret via secretKeyRef
  • Update .vitepress/config.ts - add GPU CRD page to the Kubernetes sidebar section

…le, and Gateway consumption example

Documents the new GPU custom resource (core.inference-gateway.com/v1alpha1) for leasing cloud GPU-backed inference runtimes. Covers spec fields (provider, credentialsRef, image, command, gpuTypes, endpoint, maxRuntime), status fields (phase, instanceID, url, connectionSecretRef, startedAt, expiresAt, Ready condition), the full lifecycle state machine with a Mermaid diagram, readiness semantics gated on HTTP readinessPath, maxRuntime/Expired behavior with no auto-reprovision, and an example showing a Gateway consuming the generated connection Secret via secretKeyRef.
@edenreich
edenreich marked this pull request as ready for review July 22, 2026 12:41
@edenreich
edenreich requested a review from a team as a code owner July 22, 2026 12:41
@edenreich

edenreich commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

@claude Can you look at this? why do we need a separate section for the GPU CRD? is it really necessary? can we keep it short and concise with only the important details? use /ponytail:ponytail

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 2m 14s —— View job


Condensed: GPU CRD folded into operator.md

  • Read gpu.md, operator.md, and sidebar config
  • Decide: separate page vs. section in operator.md
  • Trim to the important details
  • Commit (f91da62, 84566dd)

You're right - a separate page wasn't necessary. The other four CRDs (Gateway, Agent, MCP, Orchestrator) each live as a short ### section under ## Custom Resources in operator.md, so the GPU CRD now follows the same pattern.

What changed:

  • Deleted gpu.md (173 lines) and reverted the sidebar entry.
  • Added a ### GPU section to operator.md (~60 lines) keeping only the essentials: one spec table, a one-line phase progression, the connection Secret semantics (url / apiKey, and that apiKey is a per-allocation token, not the provider key), the maxRuntime/Expired behavior, and the GPU + Gateway secretKeyRef example.
  • Updated the CRD count/list in the intro and Verification sections (four -> five, added gpus).

What was cut: the separate status-field table, the Mermaid state diagram, the per-phase description table, and the duplicated Status/Cleanup sections (operator.md already has generic ones). Deep details stay in gpu_types.go and examples/gpu/, both linked. Worth a dedicated page again only if the GPU API grows multiple providers with provider-specific config.

Prettier, markdownlint, and bun run build all pass.
| Branch

@edenreich
edenreich merged commit 39c66e7 into main Jul 22, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-439 branch July 22, 2026 14:01
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 22, 2026
## [0.9.3](0.9.2...0.9.3) (2026-07-22)

### 🐛 Bug Fixes

* **configuration:** update Z-AI API URL to match canonical schema ([#443](#443)) ([2ad9f95](2ad9f95))

### 📚 Documentation

* **api-reference:** document community context-window fallback ([#450](#450)) ([be74471](be74471))
* **api-reference:** document community pricing fallback ([#449](#449)) ([3504c8f](3504c8f))
* **api-reference:** document context_window resolution for GET /v1/models include param ([#445](#445)) ([ca01a1b](ca01a1b))
* **api-reference:** document include query parameter on GET /v1/models ([#442](#442)) ([566dd19](566dd19))
* **api-reference:** document include=pricing model pricing metadata on GET /v1/models ([#446](#446)) ([88f0573](88f0573))
* **api-reference:** document subscription field in pricing metadata ([#456](#456)) ([ae251c1](ae251c1))
* document llamacpp LLAMACPP_API_KEY bearer auth ([#437](#437)) ([c8cd256](c8cd256))
* **go-sdk:** document include=context_window on ListModels and ListProviderModels ([#452](#452)) ([ec3a520](ec3a520))
* **observability:** document tracing config env vars ([#459](#459)) ([60a2cc2](60a2cc2)), closes [#457](#457)
* **operator:** add GPU CRD reference page with spec, status, lifecycle, and Gateway consumption example ([#458](#458)) ([39c66e7](39c66e7))
* **operator:** add keyless Llamacpp Gateway CR example ([#431](#431)) ([2937e3c](2937e3c))
* **operator:** note llamacpp requires operator v0.19.0+ ([#433](#433)) ([eca2735](eca2735))
* **typescript-adk:** PascalCase MessageRole enum members ([#427](#427)) ([23d43bc](23d43bc))
* **typescript-sdk:** document listModels include parameter and model metadata fields ([#454](#454)) ([a0cfd8b](a0cfd8b))

### 🔧 Miscellaneous

* **deps-dev:** bump the bun group with 2 updates ([#435](#435)) ([cc8f36c](cc8f36c))
* **deps:** bump actions/setup-node in the github-actions group ([#434](#434)) ([53324e0](53324e0))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document the GPU CRD (cloud GPU inference runtimes)

1 participant