Kubernetes allocation report

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Kubernetes allocation report is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Produce OpenCost-compatible namespace, pod, and workload cost allocation tables from user-supplied cluster shape data and public cloud pricing. Input is cluster topology provided by the caller; no cluster credentials or live API access are required or accepted. Output maps to FOCUS v1.2 columns.

How to use this skill

Skill file

Kubernetes Allocation Report

Purpose

Generate an OpenCost-compatible cost allocation breakdown for Kubernetes workloads using cluster shape data supplied by the caller and live public cloud pricing. The output attributes cost by namespace, workload, and labeled team, following OpenCost allocation semantics and mapping to FOCUS v1.2 billing columns.

No cluster credentials are accepted. All pricing is fetched from public pricing APIs.

When to use

Use this skill when:

Operating rules

Required input

The caller must supply:

If any required input is missing, ask one clarifying question per gap. Do not fabricate cluster data.

Allocation methodology

  1. Node cost per hour: fetch on-demand price for each node SKU. Multiply by node count and runtime hours to get total cluster node cost.
  2. Allocatable resources per node: CPU = (node vCPU count - system overhead, default 10%) allocatable; memory = (node RAM - system overhead, default 10%) allocatable.
  3. Split node cost by dimension: divide total cluster cost between CPU and memory (default: 50% CPU, 50% memory; adjust if provider publishes component pricing).
  4. Request-based share per dimension: for each pod, compute CPU share = pod CPU request / total cluster allocatable CPU; and memory share = pod memory request / total cluster allocatable memory.
  5. Allocated cost per pod: CPU cost = CPU share × CPU portion of node cost; Memory cost = Memory share × memory portion of node cost.
  6. Idle cost: cluster cost minus sum of all pod-allocated costs.
  7. Aggregate by namespace / workload / team: sum pod-level costs to produce namespace, workload, and team totals.

Response shape

Return a structured allocation table with these columns:

| Column | Description | FOCUS mapping |

|---|---|---|

| Namespace | Kubernetes namespace | ResourceName (namespace scope) |

| Workload | Deployment / StatefulSet / DaemonSet / Job name | ResourceName (workload scope) |

| Team | Value of team or cost-center label | Tags/team |

| CPU request (m) | Millicores requested | N/A |

| Memory request (MiB) | MiB requested | N/A |

| CPU cost ($/period) | Cost attributed to CPU requests | BilledCost (CPU share) |

| Memory cost ($/period) | Cost attributed to memory requests | BilledCost (memory share) |

| Total allocated cost ($/period) | Sum of CPU and memory allocated cost | BilledCost |

| Provenance | Label for the price source | N/A |

Followed by:

References

Load these only when needed:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.