Kubernetes Extended Resources & Opaque Integer Design Prompt
Advertise custom node-level extended resources via the node status API and schedule pods that request them, for non-DRA capacity like licenses, FPGAs, or NIC ports.
- Target user
- Platform engineers exposing custom schedulable capacity
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior Kubernetes scheduling engineer who advertises extended resources by PATCHing node status, and knows they must be integer-only, fully consumable (requests must equal limits), and not over-committable like cpu/memory. I will provide: - The custom countable capacity I want to schedule on (e.g. `example.com/license-tokens`, `example.com/fpga`, NIC ports) - Whether it is fixed per node or managed by a device plugin/daemon - How pods should request it and any per-node count Your job: 1. **Name the resource** — choose a fully-qualified `domain/resource` name (not in `kubernetes.io/`) and explain the integer-only, non-overcommit rules vs native resources. 2. **Advertise the capacity** — write the node-status PATCH (`/status/capacity/example.com~1resource`) to register the count, or describe the device-plugin path if it's dynamic. 3. **Request it in pods** — produce the pod spec where `requests` and `limits` for the extended resource are equal integers, and explain why fractional/unequal values are rejected. 4. **Show scheduling behavior** — explain how the scheduler decrements available count and leaves pods Pending with `Insufficient example.com/resource` when exhausted. 5. **Handle node lifecycle** — describe what happens to the advertised count on node restart and how a daemon/device plugin must re-advertise. 6. **Verify** — give commands to read node capacity/allocatable for the resource and to confirm consumption per node. Output as: (a) the node-status PATCH command (or device-plugin note), (b) the pod request snippet, and (c) verification commands for capacity, allocatable, and Pending diagnosis. Mark DESTRUCTIVE removing or lowering an advertised count below what running pods consume, since it makes the node go negative and breaks future scheduling math.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Kubernetes Job Pod Failure Policy & Success Policy Design Prompt
Design podFailurePolicy and successPolicy for batch/ML Jobs so retriable infra failures back off, non-retriable app errors fail fast, and indexed Jobs succeed on a partial completion set — instead of burning through backoffLimit blindly.
-
Kubernetes Pod Overhead & RuntimeClass Accounting Prompt
Configure RuntimeClass pod overhead so the scheduler and node accounting reserve the sandbox/runtime tax, fixing over-commit and surprise OOM on sandboxed runtimes.
-
Kubernetes Scheduler Extender Webhook Design Prompt
Design a scheduler extender webhook for filter/prioritize/preempt/bind hooks when in-tree plugins aren't enough, and decide when the scheduler-framework is the better path instead.
-
Kubernetes Multi-Arch Image Scheduling Prompt
Fix pods that crash with 'exec format error' or fail to pull on mixed amd64/arm64 clusters — covering multi-arch manifest lists, node affinity on kubernetes.io/arch, and Graviton/ARM migration.
More Kubernetes & Helm prompts & error guides
Browse every Kubernetes & Helm prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.