Skip to content

[docs] Document Kubernetes CPU and memory requests and limits - #1996

Merged
Eric Erhardt (eerhardt) merged 1 commit into
mainfrom
ievangelist-document-kubernetes-resource-limits
Nov 5, 2026
Merged

Eric Erhardt (eerhardt) merged 1 commit into
mainfrom
ievangelist-document-kubernetes-resource-limits

Conversation

@IEvangelist

Copy link
Copy Markdown
Member

Summary

Fixes #1875.

Add a C# AppHost sample using PublishAsKubernetesService to configure the generated container's CPU and memory requests and limits. Explain quantity syntax, scheduling versus runtime enforcement, optional values, and the difference between Aspire's lack of defaults and Kubernetes admission-time defaults. Cover Deployment and StatefulSet pod templates, publish-only behavior, and the C# customization scope.

Link the canonical sample from the AKS integration and Kubernetes deployment overview. Target main: this API exists in the 13.6 release line and doesn't depend on 17.0 changes.

Third-party links and affiliations

Adds a link to the official Kubernetes resource-management documentation. No commercial or promotional links.

Validation

  • npx --yes bun run test:unit:docs (from src/frontend) — passed, 2 tests.
  • dotnet run --project ResourceCheck.csproj --no-restore (session-only harness) — passed. Compiled and exercised the sample callback against Aspire.Hosting.Kubernetes and Aspire.Hosting.Azure.Kubernetes 13.6.0-preview.1.26479.8 and Aspire.Hosting.AppHost 13.6.0, checking all four quantity values on Deployment and StatefulSet models with both environment registrations. This is model-level validation, not a cluster deployment. Restore reports the existing MessagePack NU1902 transitive-package advisory.
  • node --input-type=module -e "import { compile } from '@mdx-js/mdx'; import fs from 'node:fs/promises'; for (const p of ['src/content/docs/integrations/compute/kubernetes.mdx','src/content/docs/integrations/cloud/azure/aks/index.mdx','src/content/docs/deployment/kubernetes.mdx']) { await compile(await fs.readFile(p, 'utf8')); console.log('MDX compiled:', p); }" (from src/frontend) — passed for all three edited documents.
  • Local Astro preview and Playwright CLI verification — passed: rendered heading, C# block, quantities table, and both cross-page links resolve to the new section. The dev-only /api/live/ 404 also occurs on the unchanged homepage.
  • git diff --check — passed.
  • No production build or live Kubernetes/AKS deployment run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the documentation updates covering Kubernetes CPU and memory requests and limits.

No open issues 🎉

What changed in this PR

Documents how C# AppHosts configure Kubernetes CPU and memory requests and limits, addressing #1875 with a shared sample for Kubernetes and AKS deployments.

Changes:

  • Adds a PublishAsKubernetesService sample that sets CPU and memory requests and limits.
  • Explains quantity syntax, scheduling versus runtime enforcement, optional values, defaults, and customization scope.
  • Links the canonical sample from the AKS integration and Kubernetes deployment overview.
File Description
src/​frontend/​src/​content/​docs/​integrations/​compute/​kubernetes.mdx Adds the resource configuration sample and supporting explanations.
src/​frontend/​src/​content/​docs/​integrations/​cloud/​azure/​aks/​index.mdx Explains AKS applicability and links to the shared sample.
src/​frontend/​src/​content/​docs/​deployment/​kubernetes.mdx Links to resource configuration guidance for both Kubernetes targets.

Review effort: Balanced

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1996. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1996 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

David Pine (IEvangelist) pushed a commit that referenced this pull request Nov 1, 2026
…2002)

## Summary

The TypeScript AppHost samples for Kubernetes Ingress and Gateway
routing use the C# overload names. Those names don't exist in the
TypeScript AppHost SDK, so a reader who copies the samples hits
`withPath is not a function` (or sends the wrong argument type).

In the TypeScript SDK, each C# overload is exported under its own
capability name. Upstream `microsoft/aspire` `main`
(c77b0c13c34616d1ce4698771bdd445fd50c7a99) defines them in
[`KubernetesIngressExtensions.cs`](https://github.com/microsoft/aspire/blob/c77b0c13c34616d1ce4698771bdd445fd50c7a99/src/Aspire.Hosting.Kubernetes/KubernetesIngressExtensions.cs),
[`KubernetesGatewayExtensions.cs`](https://github.com/microsoft/aspire/blob/c77b0c13c34616d1ce4698771bdd445fd50c7a99/src/Aspire.Hosting.Kubernetes/KubernetesGatewayExtensions.cs)
and
[`CertManagerExtensions.cs`](https://github.com/microsoft/aspire/blob/c77b0c13c34616d1ce4698771bdd445fd50c7a99/src/Aspire.Hosting.Kubernetes/CertManagerExtensions.cs).
The in-repo `src/data/ts-modules/Aspire.Hosting.Kubernetes.*.json`
surface matches them.

| C# overload | Upstream `[AspireExport]` | TS sample before | TS sample
after |
| --- | --- | --- | --- |
| `WithPath(path, endpoint)` | `withIngressPath` |
`ingress.withPath(...)` | `ingress.withIngressPath(...)` |
| `WithTls()` (Ingress) | `withIngressTlsAuto` | `ingress.withTls()` (TS
`withTls` requires `secretName`) | `ingress.withIngressTlsAuto()` |
| `WithIngressClass(IResourceBuilder<ParameterResource>)` |
`withIngressClassParam` | `ingress.withIngressClass(param)` |
`ingress.withIngressClassParam(param)` |
| `WithHostname(IResourceBuilder<ParameterResource>)` (Ingress) |
`withIngressHostnameParam` | `ingress.withHostname(param)` |
`ingress.withIngressHostnameParam(param)` |
| `WithRoute(path, endpoint)` | `withGatewayPathRoute` |
`storefront.withRoute(...)` | `storefront.withGatewayPathRoute(...)` |
| `WithTls(issuer)` (Gateway) | `withGatewayTlsIssuer` |
`storefront.withTls(letsencrypt)` |
`storefront.withGatewayTlsIssuer(letsencrypt)` |
| `WithHostname(IResourceBuilder<ParameterResource>)` (Gateway) |
`withGatewayHostnameParam` | `storefront.withHostname(param)` |
`storefront.withGatewayHostnameParam(param)` |

Upstream's own TypeScript polyglot AppHost uses the same names, for
example `gateway.withGatewayTlsIssuer(stagingIssuer)` in
[`tests/PolyglotAppHosts/Aspire.Hosting.Kubernetes/TypeScript/apphost.mts`](https://github.com/microsoft/aspire/blob/c77b0c13c34616d1ce4698771bdd445fd50c7a99/tests/PolyglotAppHosts/Aspire.Hosting.Kubernetes/TypeScript/apphost.mts).

This PR changes 15 sample lines in 6 TypeScript blocks:

- `deployment/kubernetes-ingress.mdx`: 3 blocks.
- `deployment/kubernetes/aks.mdx`: 3 blocks.

The C# samples and the prose are unchanged.

### How this was found

I ran a systematic TypeScript AppHost drift audit across all docs:

- **Scope:** 1,264 TS fences in 611 files. 398 are `twoslash` blocks,
which the build already type-checks.
- **Type-check:** I compiled the remaining 635 AppHost blocks (507 full
samples, 128 fragments) against `src/data/twoslash/aspire.d.ts` with the
repo's twoslash compiler options. That produced 202 English diagnostics.
- **Triage:**
- Argument-shape diagnostics were mostly gaps in the local `.d.ts`
generator, not sample errors. For example, upstream emits options
objects for all optional parameters, so calls like `runAsEmulator({
configureContainer })` are correct.
- Name-level diagnostics were checked against the ts-modules data and
upstream source.
  - The Ingress/Gateway names are the confirmed group fixed here.
  - `addAzureCosmosDb` is already handled by #2001.

### Regression test

The new `tests/unit/typescript-kubernetes-routing-apis.vitest.test.ts`
scans the TypeScript samples in the English docs for
`addIngress`/`addGateway` resources. It checks each call on them against
the ts-modules surface for
`KubernetesIngressResource`/`KubernetesGatewayResource`, including
inherited interface targets. It flags:

- methods that aren't exported;
- calls with fewer arguments than the required parameters;
- resource variables passed where a `string` is required.

On `main` it fails with 14 problems:

```
deployment/kubernetes/aks.mdx:311: withRoute is not exported for KubernetesGatewayResource
deployment/kubernetes/aks.mdx:360: withRoute is not exported for KubernetesGatewayResource
deployment/kubernetes/aks.mdx:361: withTls expects a string but got resource letsencrypt
deployment/kubernetes/aks.mdx:458: withHostname expects a string but got resource hostname
deployment/kubernetes/aks.mdx:459: withRoute is not exported for KubernetesGatewayResource
deployment/kubernetes-ingress.mdx:100: withTls expects 1 argument(s) but got 0
deployment/kubernetes-ingress.mdx:103: withPath is not exported for KubernetesIngressResource
deployment/kubernetes-ingress.mdx:104: withPath is not exported for KubernetesIngressResource
deployment/kubernetes-ingress.mdx:137: withTls expects 1 argument(s) but got 0
deployment/kubernetes-ingress.mdx:140: withPath is not exported for KubernetesIngressResource
deployment/kubernetes-ingress.mdx:141: withPath is not exported for KubernetesIngressResource
deployment/kubernetes-ingress.mdx:198: withIngressClass expects a string but got resource ingressClass
deployment/kubernetes-ingress.mdx:199: withHostname expects a string but got resource hostname
deployment/kubernetes-ingress.mdx:200: withTls expects 1 argument(s) but got 0
```

With this change, the test passes.

The 15th line, `aks.mdx:460` (`withTls(letsencrypt)` →
`withGatewayTlsIssuer`), is the same issuer drift. The test doesn't
detect it because that snippet reuses `letsencrypt` from an earlier
block without declaring it.

### Screenshots

The only visual change is the rendered TypeScript tab text. Captures are
Playwright, desktop 1280×900, light theme, against a local dev server.

| | Before (`main`) | After |
| --- | --- | --- |
| Kubernetes Ingress — Routing paths to services (desktop, light) |
![Before: Ingress TypeScript sample uses withTls() and
withPath](https://github.com/user-attachments/assets/bf1d5fab-d6bb-4a01-9eba-1ea78fb2e4a8)
| ![After: Ingress TypeScript sample uses withIngressTlsAuto() and
withIngressPath](https://github.com/user-attachments/assets/9ac6df88-51c5-41fd-b231-bb0b03af4fc0)
|
| AKS — Add automatic HTTPS with cert-manager (desktop, light) |
![Before: Gateway TypeScript sample uses withRoute and
withTls(letsencrypt)](https://github.com/user-attachments/assets/a7343a3e-0887-4014-a119-2dd3e34211c6)
| ![After: Gateway TypeScript sample uses withGatewayPathRoute and
withGatewayTlsIssuer](https://github.com/user-attachments/assets/afc3534c-6ef7-4bfd-8cb3-fde8d1f99cbd)
|

### Out of scope

The TypeScript samples in `kubernetes-ingress-aks.mdx` and
`kubernetes-gateway-aks.mdx` use a different, non-canonical shape
(`import { DistributedApplication } from "@aspire/apphost"` with
synchronous chaining). Correcting them needs a sample rewrite rather
than a rename, so I left them for a separate change.

Overlap check: no open issue or PR mentions these names. #1996 and #1868
touch other Kubernetes pages but not these samples.

## Third-party links and affiliations

None. The links above point to `microsoft/aspire` source.

## Validation

- `npx vitest run
tests/unit/typescript-kubernetes-routing-apis.vitest.test.ts`: fails on
`main` (14 problems above) and passes with this change.
- `npx vitest run`: 85 files, 1,121 passed, 1 skipped.
- `npx eslint . --max-warnings 0`: clean.
- `npx prettier --check` on the new test: clean. The two `.mdx` files
already have Prettier warnings on `main`, unchanged by this PR.
- Playwright before/after screenshots above.

**🤖 Posted by AspireAgent (AI Agent)**

Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Copilot <[email protected]>

Copy link
Copy Markdown
Member Author

docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]

Recommendation: approve

Source used: microsoft/aspire main (K8s PublishAsKubernetesService; not source-traced)
PR status: non-draft, mergeable, maintainer-authored (IEvangelist), opened 2026-10-30 — not stale; 3 files; fixes #1875.

Phase A — claims

  • ✅ the sample uses container.Resources.Requests/Limits["cpu"|"memory"], quantity syntax (250m, 256Mi) and requests-vs-limits semantics that are standard Kubernetes.
  • ⚠️ nuance: confirm PublishAsKubernetesService callback exposes Resources.Requests/Limits in the 17.0 API and that the AKS page's anchor link resolves.

Phase B — doc-tester

Not run; rendering of the changed pages is not browser-checked.

🤖 Posted by aspire.dev - squad (AI Agent)

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[partial - phase A: 33 of 33 claims evaluated; phase B: browser checks completed, compilation/runtime blocked]

Automation: user-approved hourly local documentation PR reviewer for David Pine (@IEvangelist). This is the single report for this PR, including partial results; later commits/reopenings do not trigger another automatic review.
Inspected head: 023e18f003ce99d338ac0e8a084f354ad9b91dd1; target main at 29550055a064c9abea399953414bbd7078c350e9. This is the repository's documentation accuracy/new-user workflow, not a standard code review.
Trusted policy: default-branch doc-pr-reviewer, doc-tester and playwright-cli at 7d23bd917ebb91418b3d71e1f117b2bd7f8fb760. Native skill registration was unavailable; trusted file workflow invocation: doc-pr-reviewer https://github.com/microsoft/aspire.dev/pull/1996. PR text and commands were treated as evidence, not execution permission.

Phase A: 33 evaluated: 32 verified, 1 verified-with-nuance, 0 unverifiable, 0 contradicted, 0 narrative. All three changed documents were read in full; unchanged tutorials and assertions in the PR body were not promoted into verified claims. API shapes, source paths and quantity semantics are supported by the pinned sources below. This does not claim successful compilation, published artifacts or live enforcement.
Phase B: /integrations/compute/kubernetes/#configure-cpu-and-memory-requests-and-limits, /integrations/cloud/azure/aks/#configure-cpu-and-memory-requests-and-limits, /deployment/kubernetes/: 13 grouped passed checks, 0 demonstrated failures, 0 critical issues, 3 warnings; full behavioral validation INCOMPLETE. Both added local cross-page links were clicked; desktop/mobile presentation, exact rendered sample capture and history were exercised. Complete independent source-blind report follows verbatim.

Verdict and reason for partial COMMENT

COMMENT only; no approval. Independent browser checks completed, but the literal C# example was not compiled or published and no Kubernetes/AKS behavior, admission defaults, scheduling, throttling or OOM enforcement was executed. No literal compatible starting AppHost/Projects.Api scaffold or authorized disposable runtime/cluster/cloud fixture was established; source verification cannot substitute for those missing observations.

The browser tester retained a concrete starting-project knowledge gap and an explicit unexecuted runtime matrix. The local live-status API404/WebSocket diagnostics were also retained with unknown baseline causality, not dismissed as unrelated. Missing execution is not presented as a failed compiler/publisher test or a proven product defect. No contradicted claim or demonstrated critical issue establishes REQUEST_CHANGES from these results. The author is David Pine (@IEvangelist), so GitHub self-approval would in any case be prohibited; no identity switch was attempted.

Source nuance A04: the Linux implementation applies CPU CFS quota when enabled and bypasses that quota for exclusive-CPU containers. The text is a standard/default-path explanation, not a universal platform/policy guarantee. This nuance remains visible; it is not misrepresented as a contradictory default or an observed throttling result.

Actionable follow-up: establish the intended existing AppHost/API starting point and an authorized disposable environment before relying on compilation, emitted workload values, admission/defaulting or resource-enforcement behavior. Do not execute this example against a shared cluster, cloud account or certificate store to clear this review. This partial review consumes the automation entry; it will not automatically retry those checks.

Phase A - source refs and frozen claim verification

The Aspire source uses the exact matching main branch. Kubernetes scheduler/runtime/admission and quantity parsing are owned upstream rather than implemented by Aspire; their pinned default branches are supplementary source evidence, not a claim about a particular installed cluster version. No CommunityToolkit or Azure SDK-owned type was introduced by these additions, so those repositories were unnecessary. Source reads were read-only at the recorded SHAs; no source build or test was run.

All 33 evaluated claims and source evidence (32 verified, 1 verified-with-nuance)

Evidence labels use source file basenames for space; each permalink contains its exact full repository path, pinned SHA and line range. All claim locations below retain the full documentation path.

A01 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:341 (inspected RIGHT-side addition).
Claim: A C# PublishAsKubernetesService callback can customize published container resource requirements.
Evidence: microsoft/aspire KubernetesServiceExtensions.cs:33-47; microsoft/aspire KubernetesPublishingContext.cs:99-114; microsoft/aspire ResourceRequirementsV1.cs:25-43.

A02 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:343 (inspected RIGHT-side addition).
Claim: Scheduler placement compares requested CPU and memory against remaining allocatable capacity.
Evidence: kubernetes/kubernetes resource_fit.go:124-165.

A03 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:343 (inspected RIGHT-side addition).
Claim: Requests are scheduling/share inputs, not themselves upper runtime CPU or memory caps.
Evidence: kubernetes/kubernetes kuberuntime_container_linux.go:354-386.
Boundary/nuance: Read with the adjacent limits paragraph; source distinguishes request-derived CPU shares from limit-derived quota/memory cap. Actual resource use was not exercised.

A04 - verified-with-nuance

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:344 (inspected RIGHT-side addition).
Claim: CPU limits are enforced using CPU quota and can throttle resource usage.
Evidence: kubernetes/kubernetes kuberuntime_container_linux.go:376-392.
Boundary/nuance: The shown Linux runtime applies CFS quota when cpuCFSQuota is enabled and disables that quota for exclusive-CPU containers. The sentence is the standard default-path explanation, not a universal platform/policy guarantee. No contrary default behavior or PR defect is asserted; enforcement remains untested.

A05 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:344 (inspected RIGHT-side addition).
Claim: A memory limit becomes the runtime memory cap and an OOM can kill container processes.
Evidence: kubernetes/kubernetes kuberuntime_container_linux.go:369-374; kubernetes/kubernetes kuberuntime_container_linux.go:394-403.

A06 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:349 (inspected RIGHT-side addition).
Claim: The sample uses the existing DistributedApplication.CreateBuilder(string[]) C# entry point.
Evidence: microsoft/aspire DistributedApplication.cs:167-174.

A07 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:351 (inspected RIGHT-side addition).
Claim: AddKubernetesEnvironment accepts the shown builder and string environment name.
Evidence: microsoft/aspire KubernetesEnvironmentExtensions.cs:308-339.

A08 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:353 (inspected RIGHT-side addition).
Claim: AddProject(name) returns a ProjectResource builder for an app-provided generated IProjectMetadata type.
Evidence: microsoft/aspire ProjectResourceBuilderExtensions.cs:72-78.
Boundary/nuance: Projects.Api denotes the user application project metadata, not a type supplied by Aspire. API-shape verification is not a successful compilation or runnable complete-project claim.

A09 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:354 (inspected RIGHT-side addition).
Claim: The callback accepts KubernetesResource and applies to compute resources.
Evidence: microsoft/aspire KubernetesServiceExtensions.cs:33-47.

A10 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:356 (inspected RIGHT-side addition).
Claim: Workload exposes PodTemplate; PodSpec contains a List indexed at zero.
Evidence: microsoft/aspire KubernetesResource.cs:60-62; microsoft/aspire Workload.cs:11-17; microsoft/aspire PodTemplateSpecV1.cs:16-40; microsoft/aspire PodSpecV1.cs:166-173.

A11 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:357 (inspected RIGHT-side addition).
Claim: Container.Resources is a nullable settable ResourceRequirementsV1; new() provides initialized dictionaries.
Evidence: microsoft/aspire ContainerV1.cs:136-141; microsoft/aspire ResourceRequirementsV1.cs:15-43.

A12 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:359 (inspected RIGHT-side addition).
Claim: The CPU request = 250m assignment uses the supported string/string dictionary surface.
Evidence: microsoft/aspire ResourceRequirementsV1.cs:25-43.
Boundary/nuance: These are source-verified assignment shapes and literals, not observed published YAML or cluster enforcement.

A13 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:360 (inspected RIGHT-side addition).
Claim: The memory request = 256Mi assignment uses the supported string/string dictionary surface.
Evidence: microsoft/aspire ResourceRequirementsV1.cs:25-43.
Boundary/nuance: These are source-verified assignment shapes and literals, not observed published YAML or cluster enforcement.

A14 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:361 (inspected RIGHT-side addition).
Claim: The CPU limit = 1 assignment uses the supported string/string dictionary surface.
Evidence: microsoft/aspire ResourceRequirementsV1.cs:25-43.
Boundary/nuance: These are source-verified assignment shapes and literals, not observed published YAML or cluster enforcement.

A15 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:362 (inspected RIGHT-side addition).
Claim: The memory limit = 512Mi assignment uses the supported string/string dictionary surface.
Evidence: microsoft/aspire ResourceRequirementsV1.cs:25-43.
Boundary/nuance: These are source-verified assignment shapes and literals, not observed published YAML or cluster enforcement.

A16 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:365 (inspected RIGHT-side addition).
Claim: The sample ends with supported builder.Build() and DistributedApplication.Run() calls.
Evidence: microsoft/aspire DistributedApplicationBuilder.cs:890-899; microsoft/aspire DistributedApplication.cs:612-618.

A17 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:368 (inspected RIGHT-side addition).
Claim: Deployment and StatefulSet both return their Spec.Template through Workload.PodTemplate.
Evidence: microsoft/aspire DeploymentV1.cs:28-34; microsoft/aspire StatefulSetV1.cs:37-43.

A18 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:368 (inspected RIGHT-side addition).
Claim: The generated pod starts with its application container; indexing zero configures that container, not all containers.
Evidence: microsoft/aspire ResourceExtensions.cs:186-203; microsoft/aspire ResourceExtensions.cs:295-311; microsoft/aspire.dev kubernetes.mdx:356-362.

A19 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:368 (inspected RIGHT-side addition).
Claim: AddAzureKubernetesEnvironment creates a Kubernetes-backed compute environment used by the same customization publishing path.
Evidence: microsoft/aspire AzureKubernetesEnvironmentExtensions.cs:49-87; microsoft/aspire KubernetesPublishingContext.cs:77-114.

A20 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:368 (inspected RIGHT-side addition).
Claim: The customization is publication-only and does not apply local aspire run resource limits.
Evidence: microsoft/aspire KubernetesServiceExtensions.cs:40-47; microsoft/aspire KubernetesPublishingContext.cs:46-51.

A21 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:370 (inspected RIGHT-side addition).
Claim: Aspire stores resource requirements as strings representing Kubernetes quantities.
Evidence: microsoft/aspire ResourceRequirementsV1.cs:25-43; kubernetes/apimachinery quantity.go:33-65.

A22 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:374 (inspected RIGHT-side addition).
Claim: 250m CPU is 250 millicpu, equal to 0.25 CPU.
Evidence: kubernetes/kubernetes types.go:7513-7517; kubernetes/kubernetes suffix.go:87-104.

A23 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:375 (inspected RIGHT-side addition).
Claim: One CPU is the unit of core capacity used for CPU resource quantities.
Evidence: kubernetes/kubernetes types.go:7513-7517; kubernetes/kubernetes suffix.go:87-104.
Boundary/nuance: Source defines CPU in cores. Hardware/topology and virtual-to-physical mapping are cluster concerns, not a promise of dedicated physical-core allocation.

A24 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:376 (inspected RIGHT-side addition).
Claim: 256Mi denotes 256 mebibytes.
Evidence: kubernetes/kubernetes types.go:7516-7517; kubernetes/kubernetes suffix.go:108-120.

A25 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:377 (inspected RIGHT-side addition).
Claim: 512Mi denotes 512 mebibytes.
Evidence: kubernetes/kubernetes types.go:7516-7517; kubernetes/kubernetes suffix.go:108-120.

A26 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:379 (inspected RIGHT-side addition).
Claim: Mi, M, and m are case-sensitive binary-mega, decimal-mega, and decimal-milli quantities; memory is measured in bytes.
Evidence: kubernetes/kubernetes types.go:7516-7517; kubernetes/kubernetes suffix.go:87-132.

A27 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:381 (inspected RIGHT-side addition).
Claim: Requests and limits are optional; Aspire does not set default CPU/memory quantities on generated containers.
Evidence: microsoft/aspire ContainerV1.cs:136-141; microsoft/aspire ResourceRequirementsV1.cs:25-43; microsoft/aspire ResourceExtensions.cs:295-311; kubernetes/kubernetes types.go:3184-3199.
Boundary/nuance: Bounded source search of src/Aspire.Hosting.Kubernetes found no cpu/memory quantity literal assignment; Resources is null and dictionaries start empty. Kubernetes or application customization may later supply values.

A28 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:381 (inspected RIGHT-side addition).
Claim: LimitRange admission can supply missing defaults and enforce container/pod resource constraints.
Evidence: kubernetes/kubernetes admission.go:220-275; kubernetes/kubernetes admission.go:500-565.

A29 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:381 (inspected RIGHT-side addition).
Claim: When a request is absent but a limit is specified, Pod defaulting copies that resource limit into its request.
Evidence: kubernetes/kubernetes defaults.go:169-184; kubernetes/kubernetes types.go:3194-3199.
Boundary/nuance: The source explicitly distinguishes Pod defaulting from PodTemplate defaulting. The doc correctly distinguishes Aspire output from admission/defaulting; a specific admission ordering/policy combination was not executed.

A30 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:384 (inspected RIGHT-side addition).
Claim: The same strongly typed CPU/memory workload model is not exported to TypeScript AppHosts.
Evidence: microsoft/aspire ResourceRequirementsV1.cs:15-43; microsoft/aspire Workload.cs:11-17; microsoft/aspire ContainerV1.cs:15-18; microsoft/aspire AtsCapabilityScanner.cs:222-229; microsoft/aspire AtsCapabilityScanner.cs:1630-1663.
Boundary/nuance: These workload model types do not carry AspireExport and nested members are not auto-published as typed polyglot capabilities. This does not deny generic manifest customization or TypeScript support for Kubernetes as a whole.

A31 - verified

Documentation: src/frontend/src/content/docs/integrations/cloud/azure/aks/index.mdx:160 (inspected RIGHT-side addition).
Claim: The added AKS section correctly routes to the C# shared Kubernetes CPU/memory sample and existing heading.
Evidence: microsoft/aspire.dev kubernetes.mdx:339-388; microsoft/aspire AzureKubernetesEnvironmentExtensions.cs:66-82.

A32 - verified

Documentation: src/frontend/src/content/docs/deployment/kubernetes.mdx:55 (inspected RIGHT-side addition).
Claim: The added overview link targets the C# resource customization section applicable to both Kubernetes-backed environments.
Evidence: microsoft/aspire.dev kubernetes.mdx:339-388; microsoft/aspire KubernetesPublishingContext.cs:77-114.

A33 - verified

Documentation: src/frontend/src/content/docs/integrations/compute/kubernetes.mdx:388 (inspected RIGHT-side addition).
Claim: The new external link is the Kubernetes canonical resource-management documentation URL cited by its own API contract.
Evidence: kubernetes/kubernetes types.go:3184-3199.
Boundary/nuance: Cross-reference identity only; Kubernetes docs prose is not used as source verification of implementation.

Inline findings: none required: Phase A has no contradicted or unverifiable claim. The single source nuance and independent tester warnings are included above and below rather than fabricated as implementation-line defects.

Version placeholders: no current-version strings were added/edited by the changed guidance. No package/version success is inferred from the reviewer machine inventory.

Execution boundaries: existing isolated Astro7.4.1 dependencies were reused; no package installation, restore, PR test script, AppHost or product command execution was requested by the parent. Root bun run dev followed trusted setup after all four required data files and unchanged skill digests were confirmed; no fallback data ingestion/full site build was run. Startup briefly reported an automatic config restart/transport disconnect before the verified HTTP200 and browser run; this is not described as a clean startup or attributed to the PR. The tester used only read-only tool inventory and the scoped browser actions recorded in its report. No deployments, provisioning, cluster context or credential changes, certificate/trust changes, push, merge, or remote branch modification occurred.

Phase B - independent source-blind doc-tester report (complete report)

Documentation Test Report — independent Phase B

Focus area: Kubernetes CPU/memory requests and limits; only PR #1996's affected rendered sections and immediate context.
PR: #1996
Pinned documentation head: 023e18f003ce99d338ac0e8a084f354ad9b91dd1
Date: 2026-11-03; browser activity approximately 13:34:59–13:39:05 UTC.
Tester: source-blind doc-tester, independent of Phase A.
Local server: http://localhost:4321/; parent-provided server at the pinned head, ready before testing. The tester did not independently inspect repository state, start, rebuild, modify, or stop that server.
Browser: globally installed playwright-cli; named session pr1996, --browser=msedge, headless, in-memory profile, PID reported as 53776. Closed successfully with playwright-cli -s=pr1996 close.
Evidence directory: C:\Users\dapine\.copilot\session-state\b1028536-a0cc-461b-98cb-21c8f8fc8a89\files\pr-1996-test

Scope and isolation

Routes exercised:

  1. /integrations/compute/kubernetes/#configure-cpu-and-memory-requests-and-limits: new H3 under Customize individual resources, including its C# sample, quantities, optional/default/admission distinction, publish-only scope, and C#/TypeScript note.
  2. /integrations/cloud/azure/aks/#configure-cpu-and-memory-requests-and-limits: new H2 and paragraph linking to the canonical sample.
  3. /deployment/kubernetes/: new per-container scheduling/runtime cross-reference, between the resource-mapping context and Publish vs deploy.

Changed file names supplied by the parent were used only to establish these routes. No PR body, comments, Phase A artifacts, implementation, tests, product repositories, PR-head policy, or repository MDX was read. The page-rendered DOM, accessibility snapshots, and screenshots were the content evidence. Network/console log URLs were recorded as diagnostics, not opened as source files. Unchanged tutorials were not audited.

Trusted policy was read using git show at default-branch policy ref 7d23bd917ebb91418b3d71e1f117b2bd7f8fb760 in the automation-owned checkout, for:

  • .agents/skills/doc-tester/SKILL.md
  • .agents/skills/playwright-cli/SKILL.md
  • .agents/skills/doc-pr-reviewer/SKILL.md

The reviewer's scoped root-bun run dev server override was followed by reusing the parent's existing server; the AppHost startup instructions were not run. No repository files were edited. All tester artifacts are outside the repository. No other PR was reviewed, and nothing was posted or sent to another session.

Summary

Category Passed Failed Warnings
Rendered teaching/content clarity 4 0 1
Code example capture and bounded readability 2 0 1
Links, headings, and browser history 5 0 0
Desktop/mobile presentation and diagnostics 2 0 1
Total 13 0 3

Critical issues observed: 0. No demonstrated content contradiction or broken added link was found by this source-blind run. This is not a source-verification verdict.

Completion status: INCOMPLETE for compilation/runtime/end-to-end behavior. The bounded rendered-page/browser checks were performed. Runtime checks remain blocked/unexecuted as detailed below; browser success must not be interpreted as compilation, publishing, Kubernetes, or AKS success. Blocked checks are not counted as passes or demonstrated failures.

Critical Issues

None demonstrated within the permitted browser-only/source-blind scope. No compiler, publisher, cluster, admission, scheduling, throttling, or OOM result was obtained.

Warnings

W1 — Runtime/publish/cluster validation is blocked, not passed

Location: canonical sample and its AKS substitution.
Type: validation limitation; not evidence that the documentation is incorrect.

Rendered guidance:

The following C# AppHost example requests a quarter of a CPU and 256 MiB of memory, with limits of one CPU and 512 MiB:

It changes the published workload, not local aspire run resource limits.

Actual outcome: The exact rendered sample was captured, but no build or execution was attempted. The sample assumes an existing Aspire AppHost and Projects.Api; the permitted section supplies neither a literal project creation sequence for that API project nor a compatible package/runtime contract. Constructing a substitute project, choosing an intrinsic package version, or fabricating an API harness would not be literal validation.

The host also has no authorized disposable Kubernetes/AKS environment or disposable certificate store. AppHost execution, deployment, provisioning, context changes, trust changes, and toolchain installation were prohibited. Publishing was not attempted because no safely runnable literal AppHost had been established.

Read-only inventory: dotnet --info succeeded: SDK 10.0.403 active, SDKs 10.0.114 and 10.0.403 installed; .NET 10.0.14 and 8.0.33 runtimes listed. Get-Command located aspire.exe, dotnet.exe, and kubectl.exe; no helm command was returned. No Aspire/package compatibility is inferred from this inventory. No missing-runtime compiler error was manufactured or observed.

Suggestion: Repeat the literal example build/publish and the runtime matrix in an authorized disposable setup with an explicitly documented starting AppHost/API project. Preserve this blocker until that execution actually occurs.

W2 — Browser console/network diagnostics were present

Location: scoped local pages.
Type: observed local browser diagnostics; causality unknown.

Initial and later navigation logs reported one console error and two warnings:

  • [ERROR] Failed to load resource: the server responded with a status of 404 (Not Found) at http://localhost:4321/api/live/.
  • [WARNING] WebSocket connection to 'ws://localhost:4321/api/live/ws' failed: WebSocket is closed before the connection is established.
  • [WARNING] [live-status] Live API not found (404); live updates disabled until reload.

The network log independently contains [GET] http://localhost:4321/api/live/ => [404] Not Found. An informational Edge message also says images are loaded lazily/replaced with placeholders and load events are deferred. Later direct canonical navigation did not display the earlier error/warning counters in its command summary; the previously observed diagnostics remain part of the evidence.

Impact: The tested prose, sample, and two added links remained usable. No baseline comparison was made. These diagnostics are not classified as a regression or as unrelated.

Evidence: .playwright-cli\console-2026-11-03T13-35-23-632Z.log, .playwright-cli\console-2026-11-03T13-38-28-421Z.log, and corresponding network logs.

Suggestion: Confirm the intended local live-status behavior in a separately authorized environment before classifying the diagnostics.

W3 — A new reader still needs a concrete starting project

Location: canonical C# subsection.
Type: teaching/prerequisite knowledge gap; medium/conditional, not a proven broken sample.

Rendered code: builder.AddProject<Projects.Api>("api").

The new section explains the callback and limits well, but is a customization example, not a standalone runnable project. Within the scoped affected context it does not explain how to obtain Projects.Api or provide a literal starting solution. The tester did not silently supply this from prior knowledge or expand into unrelated tutorials.

Suggestion: If the subsection is meant to be copied by a new reader, identify the assumed existing AppHost/API project or link directly to the applicable prerequisite. It is reasonable for an advanced customization section to assume such a project, but that assumption should be explicit when using the example as an executable walkthrough.

Passed Checks

These are rendered-content/usability checks, not claims about the product implementation.

  1. Requests versus limits are taught distinctly. Requests are presented as scheduling reservations, with possible use above the request; CPU throttling and memory OOM termination are described as limits. This order makes the example understandable without inventing terminology.
  2. Quantity table and suffix caveat are present and coherent with the sample. DOM rows are 250m CPU → 250 millicpu, equivalent to 0.25 CPU; 1 CPU → One physical or virtual CPU core; 256Mi memory → 256 mebibytes; 512Mi memory → 512 mebibytes. The text distinguishes Mi, M, and memory m. Runtime interpretation of these strings was not tested.
  3. Optional/default/admission teaching is explicit. The page says the dictionary entries are optional, Aspire supplies no CPU/memory defaults, admission policies such as LimitRange can supply defaults/enforce constraints, and limit-only values become requests only when no admission-time default applies. The tester can distinguish those layers from the prose; actual admission behavior remains untested.
  4. Scope and language boundaries are explicit. The page identifies the first generated container, not all containers; Deployment/StatefulSet pod-template use; the AKS substitution; published workload rather than local aspire run limits; and that the same typed customization is not currently exposed to TypeScript AppHosts. API availability and behavior were not source-verified here.
  5. Exact rendered C# was captured. dom-sample-extraction.txt records the copy button's DOM data-code, decoded from DEL codepoint U+007F separators into line feeds. rendered-AppHost.cs preserves those code lines, with no added imports, project implementation, API shim, or package version. A final comparison verifies equality apart from file line-ending/final-newline representation. Clicking the visible copy button succeeded, but OS clipboard contents were not read or asserted.
  6. Code is accessible within bounded desktop/mobile layouts. At 1440×1000 the sample preformatted area reported client width 1036 and scroll width 1036. At 390×844 it reported client width 356 and scroll width 742, contained within a 358-pixel region. Actual pointer/wheel input moved its horizontal scroll position from 0 to 386, exposing the long-line tail without widening the document.
  7. AKS added cross-page link was actually clicked. click e685 from aks-desktop.yaml navigated to the exact canonical route and hash, titled Kubernetes integration | Aspire, with the target H3 present.
  8. Deployment added cross-page link was actually clicked at both sizes. Desktop click e324 and mobile click e147 reached the same canonical route/hash. The mobile link paragraph wrapped within 358 pixels.
  9. Section self-links work. Canonical click e802 / mobile click e3174, AKS click e678, and final canonical click e1022 preserved/navigated the expected section hash. Direct anchored navigation also found the corresponding headings.
  10. Back/forward navigation recovers the originating page and target. AKS→canonical→back→forward and deployment→canonical→back→forward were exercised. An explicit settled DOM check confirmed deployment title Deploy to Kubernetes | Aspire with the added link, and later canonical title Kubernetes integration | Aspire with the target heading. Immediate transient stale titles are disclosed below.
  11. Target heading hierarchy matches the supplied route scope. Rendered DOM identifies the canonical H3 beneath Customize individual resources and AKS H2 with the same slug. Both new cross-page links have site-relative paths, a slash before #, and an existing target heading.
  12. Bounded desktop presentation is usable across all three routes. The canonical sample, AKS new section, and deployment cross-reference were read in snapshots/DOM and captured. At measured desktop locations document width equaled 1440, and the sample did not horizontally overflow. No general audit of the surrounding unchanged deployment tables/tutorial was performed.
  13. Bounded mobile presentation is usable across all three affected sections. Document width equaled viewport width 390. Canonical paragraphs/table were 358 pixels wide; the table's scroll width equaled its client width. The language aside wrapped within 357/358 pixels; AKS heading width was about 301 pixels, its top about 124 pixels on anchored load. Screenshots show readable wrapped caveat/note and deployment cross-reference. Some early captures were poorly positioned; see the capture caveat below.

Literal sample copied from rendered DOM

var builder = DistributedApplication.CreateBuilder(args);

builder.AddKubernetesEnvironment("k8s");

builder.AddProject<Projects.Api>("api")
    .PublishAsKubernetesService(resource =>
    {
        var container = resource.Workload!.PodTemplate.Spec.Containers[0];
        container.Resources ??= new();

        container.Resources.Requests["cpu"] = "250m";
        container.Resources.Requests["memory"] = "256Mi";
        container.Resources.Limits["cpu"] = "1";
        container.Resources.Limits["memory"] = "512Mi";
    });

builder.Build().Run();

The above is a specimen, not an executed/compiled test.

Knowledge Gaps

Existing Projects.Api / AppHost prerequisite

  • What I needed to know: Which existing API project and AppHost configuration the customization snippet assumes, and a compatible package/runtime setup.
  • Source of knowledge: Not established by executing the scoped rendered guidance. Prior/intrinsic knowledge would be needed to invent a replacement; the tester deliberately did not do that.
  • User impact: A reader starting with only this snippet cannot treat it as an independently executable application.
  • Recommendation: Explicitly identify/link the assumed starting project; do not broaden this advanced subsection into an unrelated tutorial merely for this review.

Product/runtime behavior

  • What remains unknown: Compilation/API compatibility, actual published YAML/Helm output, Deployment and StatefulSet execution, first-container-only effects in a multi-container pod, optional/limit-only behavior with and without admission defaults, C#/TypeScript runtime availability, local-versus-published enforcement, scheduling, CPU throttling, memory OOM behavior, and AKS equivalence.
  • Source of knowledge: No implementation/tests or Phase A evidence was consumed. These are unexecuted tests, not inferred successes.
  • Recommendation: Authorize a separate disposable environment and literal starting project to close these gaps. Parent-owned source verification is separate evidence and cannot retroactively make this browser run end-to-end.

Exact commands and observed outcomes

Unless stated otherwise, browser commands were run from the evidence directory via PowerShell. All commands used the globally installed executable, not npx, MCP, direct Playwright APIs, browser HTTP substitutes, forced event handlers, or private navigation APIs.

Policy and environment

The policy command form was run separately for each of the three named paths:

git -C 'C:\Users\dapine\.copilot\session-state\b1028536-a0cc-461b-98cb-21c8f8fc8a89\files\aspire-dev-automation' --no-pager show '7d23bd917ebb91418b3d71e1f117b2bd7f8fb760:.agents/skills/doc-tester/SKILL.md'
git -C 'C:\Users\dapine\.copilot\session-state\b1028536-a0cc-461b-98cb-21c8f8fc8a89\files\aspire-dev-automation' show '7d23bd917ebb91418b3d71e1f117b2bd7f8fb760:.agents/skills/playwright-cli/SKILL.md'
git -C 'C:\Users\dapine\.copilot\session-state\b1028536-a0cc-461b-98cb-21c8f8fc8a89\files\aspire-dev-automation' show '7d23bd917ebb91418b3d71e1f117b2bd7f8fb760:.agents/skills/doc-pr-reviewer/SKILL.md'
playwright-cli --help
Get-Command aspire,dotnet,kubectl,helm -ErrorAction SilentlyContinue | Select-Object Name,Source
dotnet --info

Policy/help reads succeeded. Two combined policy outputs exceeded the tool display limit; policy was subsequently reread directly in bounded Select-Object -First / -Skip chunks until all content was available. No tool-generated temporary output file was opened. The inventory outcomes are recorded in W1.

Browser route/action ledger

The following are literal command forms executed in the run; snapshot ref numbers belong to the named snapshots, not permanent selectors.

Commands Observed outcome
playwright-cli -s=pr1996 open 'http://localhost:4321/integrations/compute/kubernetes/#configure-cpu-and-memory-requests-and-limits' --browser=msedge Opened new in-memory Edge session; canonical title; initial 1 error/2 warnings.
playwright-cli -s=pr1996 resize 1440 1000 ; playwright-cli -s=pr1996 snapshot --filename=compute-desktop.yaml Desktop baseline snapshot.
playwright-cli -s=pr1996 click e802 ; playwright-cli -s=pr1996 screenshot --filename=compute-desktop.png Canonical self-link accepted. Early screenshot has partially clipped heading; sample readable.
playwright-cli -s=pr1996 goto 'http://localhost:4321/integrations/cloud/azure/aks/#configure-cpu-and-memory-requests-and-limits' ; playwright-cli -s=pr1996 snapshot --filename=aks-desktop.yaml ; playwright-cli -s=pr1996 screenshot --filename=aks-desktop.png AKS heading/paragraph loaded; 1440-pixel document.
playwright-cli -s=pr1996 click e678 ; playwright-cli -s=pr1996 click e685 AKS self-link then actual added cross-page link; canonical hash reached.
playwright-cli -s=pr1996 go-back ; playwright-cli -s=pr1996 go-forward AKS/canonical history exercised; immediate back title stale, later content recovered.
playwright-cli -s=pr1996 snapshot --filename=compute-after-link.yaml Canonical content confirmed after settling.
playwright-cli -s=pr1996 goto 'http://localhost:4321/deployment/kubernetes/' ; playwright-cli -s=pr1996 snapshot --filename=deployment-desktop.yaml Deployment cross-reference present, exact target extracted from DOM.
playwright-cli -s=pr1996 mousewheel 0 1050 ; playwright-cli -s=pr1996 screenshot --filename=deployment-desktop.png CLI emitted horizontal page.mouse.wheel(1050, 0), not the intended vertical scroll. This screenshot is not evidence that the cross-reference was in view.
playwright-cli -s=pr1996 click e324 Actual desktop deployment link navigated to canonical target.
playwright-cli -s=pr1996 go-back ; playwright-cli -s=pr1996 snapshot --filename=deployment-back.yaml Settled title became Deploy to Kubernetes; DOM confirmed added link.
playwright-cli -s=pr1996 go-forward ; playwright-cli -s=pr1996 snapshot --filename=compute-forward.yaml Immediate snapshot still had deployment title. Later DOM and compute-settled.yaml confirmed canonical title/heading; no permanent failure inferred.
playwright-cli -s=pr1996 snapshot --filename=compute-settled.yaml ; playwright-cli -s=pr1996 resize 390 844 ; playwright-cli -s=pr1996 snapshot --filename=compute-mobile.yaml Mobile layout established; resize retained a different scroll position, so next self-link was used to re-anchor.
playwright-cli -s=pr1996 screenshot --filename=compute-mobile-heading.png Early poorly positioned capture; not used as proof of the new heading being visible.
playwright-cli -s=pr1996 click e3174 ; playwright-cli -s=pr1996 screenshot --filename=compute-mobile-heading-anchored.png Actual self-link restored visible wrapped heading and definitions.
playwright-cli -s=pr1996 click e3253 ; playwright-cli -s=pr1996 screenshot --filename=compute-mobile-code.png Sample copy control click accepted; clipboard not read. Initial code capture poorly positioned.
playwright-cli -s=pr1996 press PageUp ; playwright-cli -s=pr1996 screenshot --filename=compute-mobile-code-start.png Normal keyboard repositioning; DOM showed sample still below viewport. Not claimed as full-code visual evidence.
playwright-cli -s=pr1996 press PageDown (twice) ; playwright-cli -s=pr1996 screenshot --filename=compute-mobile-code-stable.png Sample region scrolled into the bounded view.
playwright-cli -s=pr1996 mousemove 250 300 ; playwright-cli -s=pr1996 mousewheel 0 450 ; playwright-cli -s=pr1996 screenshot --filename=compute-mobile-code-horizontal.png CLI emitted page.mouse.wheel(450, 0); this time intentionally used as actual horizontal scrolling. DOM scrollLeft changed 0→386.
playwright-cli -s=pr1996 press PageDown ; playwright-cli -s=pr1996 screenshot --filename=compute-mobile-table.png Scrolled toward quantity/caveat area. The screenshot's name is not proof of table visibility: retained capture shows lower text. Table dimensions/contents were separately read from DOM.
playwright-cli -s=pr1996 press PageDown ; playwright-cli -s=pr1996 screenshot --filename=compute-mobile-caveats.png Readable optional/admission prose and TypeScript note captured.
playwright-cli -s=pr1996 goto 'http://localhost:4321/integrations/cloud/azure/aks/#configure-cpu-and-memory-requests-and-limits' ; playwright-cli -s=pr1996 snapshot --filename=aks-mobile.yaml ; playwright-cli -s=pr1996 screenshot --filename=aks-mobile.png AKS mobile content/link rendered. Screenshot is lower than heading; separate DOM check established heading fit and anchored position.
playwright-cli -s=pr1996 goto 'http://localhost:4321/deployment/kubernetes/' ; playwright-cli -s=pr1996 snapshot --filename=deployment-mobile.yaml Mobile deployment content loaded.
playwright-cli -s=pr1996 hover e147 ; playwright-cli -s=pr1996 screenshot --filename=deployment-mobile.png ; playwright-cli -s=pr1996 click e147 Actual hover scrolled added link into view; paragraph readable; click reached canonical hash.
playwright-cli -s=pr1996 snapshot --filename=mobile-link-target.yaml Mobile canonical destination confirmed.
playwright-cli -s=pr1996 console ; playwright-cli -s=pr1996 network Run on initial and later canonical visits; saved diagnostic logs described in W2.
playwright-cli -s=pr1996 resize 1440 1000 ; playwright-cli -s=pr1996 goto 'http://localhost:4321/integrations/compute/kubernetes/#configure-cpu-and-memory-requests-and-limits' ; playwright-cli -s=pr1996 snapshot --filename=compute-desktop-final.yaml Fresh desktop anchor check. DOM heading top 87.515625, height 40.
playwright-cli -s=pr1996 click e1022 ; playwright-cli -s=pr1996 screenshot --filename=compute-desktop-anchor-settled.png Same-page anchor worked; measured heading position remained 87.515625 after settling.
playwright-cli -s=pr1996 hover e1039 ; playwright-cli -s=pr1996 screenshot --filename=compute-desktop-code-final.png Full desktop sample readable. Hover/capture can move heading under sticky UI; not a missing target.
playwright-cli -s=pr1996 close Output: Browser 'pr1996' closed. No close-all/kill-all/storage deletion was used. Parent server left untouched.

Start-Sleep -Seconds 1 was used between later scrolling/navigation and evidence capture. Snapshots and DOM checks, rather than a screenshot filename alone, establish what was actually checked.

DOM inspection commands

Representative exact successful eval commands used to establish content and dimensions:

playwright-cli -s=pr1996 eval "() => {let h=document.getElementById('configure-cpu-and-memory-requests-and-limits');let e=h.closest('.sl-heading-wrapper')||h;let nodes=[];for(e=e.nextElementSibling;e&&!e.matches('h2,h3,.sl-heading-wrapper');e=e.nextElementSibling)nodes.push(e.innerText);return {nodes,viewport:innerWidth,page:document.documentElement.scrollWidth,heading:h.getBoundingClientRect().toJSON()};}"
playwright-cli -s=pr1996 eval "() => [...document.querySelectorAll('main a')].filter(a=>a.href.includes('configure-cpu')).map(a=>({text:a.textContent,href:a.getAttribute('href'),parent:a.parentElement.innerText,rect:a.getBoundingClientRect().toJSON()}))"
playwright-cli -s=pr1996 eval "() => ({url:location.href,title:document.title,hasLink:[...document.querySelectorAll('main a')].some(a=>a.textContent==='Configure CPU and memory requests and limits')})"
playwright-cli -s=pr1996 eval "() => {let p=[...document.querySelectorAll('pre')].find(p=>p.getAttribute('aria-label')?.includes('AppHost.cs in Configure CPU'));return {lines:[...p.querySelectorAll('.ec-line .code')].map(e=>e.textContent),viewport:innerWidth,page:document.documentElement.scrollWidth};}"
playwright-cli -s=pr1996 eval "() => {let p=[...document.querySelectorAll('pre')].find(p=>p.getAttribute('aria-label')?.includes('AppHost.cs in Configure CPU'));return {scrollY,codeScroll:p.scrollLeft,pre:p.getBoundingClientRect().toJSON()};}"
playwright-cli -s=pr1996 eval "() => {let h=document.getElementById('configure-cpu-and-memory-requests-and-limits');let e=h.closest('.sl-heading-wrapper');let out=[];for(e=e.nextElementSibling;e&&!e.matches('h2,h3,.sl-heading-wrapper');e=e.nextElementSibling)if(e.tagName==='TABLE'||e.tagName==='ASIDE'||e.textContent.startsWith('CPU and memory'))out.push({tag:e.tagName,text:e.innerText,rect:e.getBoundingClientRect().toJSON()});return out;}"
playwright-cli -s=pr1996 eval "() => {let p=[...document.querySelectorAll('pre')].find(p=>p.getAttribute('aria-label')?.includes('AppHost.cs in Configure CPU'));return {viewport:innerWidth,page:document.documentElement.scrollWidth,codeWidth:p.clientWidth,codeScroll:p.scrollWidth};}"

The final exact DOM-copy command was captured to dom-sample-extraction.txt:

$out=playwright-cli -s=pr1996 eval "() => {let p=[...document.querySelectorAll('pre')].find(p=>p.getAttribute('aria-label')?.includes('AppHost.cs in Configure CPU'));let b=p.parentElement.querySelector('button');return {code:b.getAttribute('data-code').split(String.fromCharCode(127)).join(String.fromCharCode(10)),parentHeading:[...document.querySelectorAll('h2')].filter(e=>Boolean(e.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_FOLLOWING)).at(-1)?.textContent,source:'rendered DOM sample copy button data-code; DEL U+007F separators decoded to LF'};}"
$out | Set-Content -Encoding utf8 dom-sample-extraction.txt

It returned the literal sample above and parent heading Customize individual resources. This read only the rendered DOM; it did not execute the sample.

Unsuccessful inspection/capture actions and recoveries

  1. An early extraction traversed siblings looking for a FIGURE:

    playwright-cli -s=pr1996 eval "() => {let h=document.getElementById('configure-cpu-and-memory-requests-and-limits');let e=h.parentElement;let fig;while(e=e.nextElementSibling){if(e.tagName==='FIGURE'){fig=e;break;}}return {code:fig.querySelector('code').textContent,desktop:{viewport:innerWidth,page:document.documentElement.scrollWidth,figure:fig.getBoundingClientRect().toJSON()},context: h.parentElement.previousElementSibling.innerText};}"

    It failed with TypeError: Cannot read properties of undefined (reading 'querySelector'). The rendered code was inside a wrapper rather than a direct FIGURE sibling. Recovery used bounded subsection traversal and pre elements visible in the DOM. No page content was changed.

  2. A later eval used a quoted CSS attribute selector with attempted backslash-escaped quotes inside a PowerShell string:

    playwright-cli -s=pr1996 eval "() => {let p=document.querySelector('pre[aria-label=\"AppHost.cs in Configure CPU and memory requests and limits\"]');return {lines:[...p.querySelectorAll('.ec-line .code')].map(e=>e.textContent),buttons:[...p.parentElement.querySelectorAll('button')].map(b=>({label:b.getAttribute('aria-label'),title:b.title})),preceding:document.getElementById('configure-cpu-and-memory-requests-and-limits').closest('.sl-heading-wrapper').previousElementSibling.innerText};}"

    The command failed before evaluation with error: too many arguments: expected 2, received 10. Recovery avoided nested quoted CSS selectors and used querySelectorAll('pre').find(...), which succeeded. Backslash is not PowerShell's quote escape; no success was inferred from the failed call.

  3. Reading raw code.textContent initially collapsed adjacent rendered line DIVs. The separate .ec-line .code extraction revealed the visual lines, and the final copy-button DOM payload preserved exact line breaks. The collapsed intermediate representation was not used as a runnable copy.

  4. The first intended vertical wheel command generated horizontal wheel input instead. Actual CLI output exposed the reversal. Later vertical positioning used normal PageUp/PageDown; the same wheel behavior was deliberately used and measured for horizontal code scrolling.

  5. Immediate history snapshots sometimes paired the destination URL with the previous title. Subsequent snapshots and DOM reads recovered the correct destination content/title; they were not treated as a broken link. Early screenshots also show partial/clipped headings, code, or a lower scroll position than their filenames imply. The report does not claim each screenshot shows the complete section or use these captures to certify invisible content.

Explicitly unexecuted checks / runtime matrix

Check Status / reason
Literal C# sample compilation Unexecuted: no literal compatible AppHost/API scaffold established within scope; no invented Projects.Api or version.
Aspire package installation/restore/version compatibility Unexecuted: no package manifest change, missing-dependency failure, or authorization to install toolchains.
AppHost execution/local resource behavior Blocked: AppHosts and trust/certificate changes prohibited on this shared host.
Publish and inspect resulting Kubernetes/Helm artifacts Unexecuted: no safely runnable literal AppHost; no substitute harness.
Requests/limits emitted with the four exact string values Unexecuted runtime/publisher check: only rendered sample/table values observed.
Optional omitted entries; limit-only request defaulting Unexecuted: no publisher/admission test.
Admission defaults/enforcement via LimitRange Blocked: no authorized disposable cluster.
Kubernetes scheduling, CPU throttling, memory OOM Blocked: no authorized disposable cluster or resource workload.
AKS substitution/deployment equivalence Blocked: no authorized disposable cloud/AKS environment; no provisioning.
Deployment versus StatefulSet/multi-container effects Unexecuted: prose reviewed, behavior not run.
TypeScript typed-customization availability Unexecuted: rendered limitation read, no product source/API test.
External Kubernetes reference destination Not exercised: outside the two added cross-page link tests and bounded local route scope.
Source current-version placeholder policy Not inspected: tester was explicitly source-blind; no new install/version instruction appeared in the affected rendered subsection. Parent owns source checks.

Recommendations

  1. Keep compilation/publish/cluster results explicitly incomplete; do not convert the 13 browser/teaching passes into an end-to-end verdict.
  2. Resolve W1 with an authorized disposable environment and a literal documented starting project, then execute the runtime matrix.
  3. Clarify or link the assumed AppHost/API scaffold if the snippet is intended for a reader without an existing application.
  4. Investigate the observed live-status 404/WebSocket warnings only with an appropriate baseline; do not attribute them to the PR without evidence.
  5. Preserve this source-blind report separately from Phase A. No implementation conclusion is implied by its browser observations.

Evidence handling and final state

Accessibility snapshots, screenshots, and CLI-generated diagnostic logs remain under this evidence directory. Snapshot copy-button labels contain DEL codepoint U+007F separators; text artifacts are sanitized to visible <U+007F> markers when necessary. Any unexpected raw C0/C1 terminal controls are represented as <U+XXXX>; ESC is described as ESC codepoint U+001B, not inserted as a literal control character. Normal line breaks/tabs remain structural whitespace.

The literal specimen is compared with the captured DOM payload before freezing. This report's SHA256 is written into integrity-hashes.txt only after all edits and final checks. The browser has been closed; the parent's documentation server remains running and untouched. No deployment, AppHost, project generation, toolchain installation, browser persistent-profile/database alteration, certificate action, or Kubernetes context modification occurred.

Final result: 13 bounded passed checks, 0 demonstrated failures, 0 critical issues, 3 warnings; browser portion completed, full behavioral validation incomplete.

@eerhardt
Eric Erhardt (eerhardt) merged commit c50fa85 into main Nov 5, 2026
20 checks passed
@eerhardt
Eric Erhardt (eerhardt) deleted the ievangelist-document-kubernetes-resource-limits branch November 5, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Kubernetes CPU and memory requests and limits

3 participants