k8s-cost-visibility

Estimate Kubernetes infrastructure costs from kubectl cluster data.

186|10|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/initializ/forge --skill k8s-cost-visibility
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-cost-visibility
Source: https://github.com/initializ/forge/tree/main/forge-skills/local/embedded/k8s-cost-visibility
Command: npx skills add https://github.com/initializ/forge --skill k8s-cost-visibility

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kubectl, jq, awk, bc, and includes scripts (resource) components.

What problem does it solve?

This Skill helps you understand and attribute the costs associated with your Kubernetes infrastructure by analyzing resource usage and applying pricing models.

Core Features & Use Cases

  • Cost Estimation: Provides estimates for node, pod, storage, and LoadBalancer costs.
  • Cost Attribution: Groups costs by namespace, workload, node, label, or annotation.
  • Waste Detection: Identifies unbound Persistent Volumes.
  • Use Case: A DevOps engineer can use this Skill to generate a monthly cost report, broken down by team labels, to identify areas of high spending and potential optimization opportunities.

Quick Start

Use the k8s-cost-visibility skill to show me the cost breakdown by namespace.

Frequently Asked Questions about k8s-cost-visibility

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate Kubernetes infrastructure costs by namespace?

You can estimate Kubernetes infrastructure costs by querying node, pod, PVC, and LoadBalancer data via kubectl, then applying cloud pricing models to generate cost attribution reports grouped by namespace. This provides a clear breakdown of cluster spending.

How does Kubernetes cost attribution work for pod and storage resources?

Kubernetes cost attribution works by querying cluster resource allocation data and applying static rates or cloud pricing models. It calculates costs for individual pods, storage volumes, and LoadBalancers, grouping the final results by workload, node, label, or annotation.

Can I detect unbound Persistent Volume waste in my Kubernetes cluster?

Yes, you can detect unbound Persistent Volume waste by analyzing PVC and PV data queried via kubectl. The process identifies unbound Persistent Volumes that are incurring storage costs without active consumption, helping you eliminate wasted infrastructure spending.

Do I need kubectl and jq to generate Kubernetes cost reports?

Yes, you need kubectl and jq installed to generate Kubernetes cost reports. Along with awk and bc, these dependencies are required to query cluster data, parse JSON output, and calculate cost estimations using cloud pricing models or static rates.

What is the best way to break down Kubernetes cloud spending by team labels?

The best way to break down Kubernetes cloud spending by team labels is to query cluster node, pod, and storage data, then apply cloud pricing models to generate cost attribution reports specifically grouped by cluster labels or annotations.

Can I track LoadBalancer and node costs separately in Kubernetes FinOps reporting?

Yes, you can track LoadBalancer and node costs separately in Kubernetes FinOps reporting by querying specific cloud resource data via kubectl. The estimation process isolates node compute costs and LoadBalancer provisioning costs to provide granular infrastructure attribution.