sre-k8s-resource-quota

Diagnose Kubernetes ResourceQuota and LimitRange saturation blocking pod creation in a namespace.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/schoolofdevops/401 --skill sre-k8s-resource-quota-schoolofdevops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sre-k8s-resource-quota
Source: https://github.com/schoolofdevops/401/tree/main/skills/sre-k8s-resource-quota
Command: npx skills add https://github.com/schoolofdevops/401 --skill sre-k8s-resource-quota-schoolofdevops

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Pod creation fails with "forbidden: exceeded quota" errors or a namespace cannot scale, and you need a read-only diagnosis of which quota resource is saturated and which pods consume the most. ## Core Features & Use Cases - Quota Saturation Analysis: Collects ResourceQuota used vs hard limits via kubectl and computes saturation ratios per resource (cpu, memory, pods). - LimitRange Verification: Detects missing or incomplete LimitRange defaults that leave pods without enforced resource limits (noisy-neighbor risk). - Escalation-Ready Reports: Produces structured handoffs with top consumer pods, shortfall calculations, and cleanup candidates without modifying any cluster objects. - Use Case: A Deployment cannot scale despite free cluster capacity. Run this skill against the namespace to confirm memory quota is at 95%, identify the top three memory-consuming pods, and escalate with a remediation recommendation. ## Quick Start Analyze the resource quota and limit range status in my target namespace and tell me why new pods are being rejected.

Frequently Asked Questions about sre-k8s-resource-quota

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

FAQPage Schema
How do I diagnose "forbidden: exceeded quota" errors in Kubernetes?

Run kubectl get resourcequota -n <namespace> -o json and compare status.used against status.hard for each resource. If used divided by hard exceeds 0.9 for cpu or memory, new pods requesting that resource will be rejected by the quota admission controller.

How to check ResourceQuota usage in a Kubernetes namespace?

Use kubectl describe resourcequota -n <namespace> for a human-readable table of Used versus Hard values per resource. For programmatic analysis, kubectl get resourcequota -o json exposes status.hard and status.used fields for cpu, memory, pods, and object counts.

What happens when a namespace has no LimitRange?

Without a LimitRange, containers in the namespace have no enforced default requests or limits, creating noisy-neighbor risk on shared nodes. Pods running without explicit resources.limits should be flagged, and a LimitRange with sensible defaults should be proposed for approval.

Can this skill modify or increase Kubernetes quota values?

No, the skill is strictly read-only and never runs kubectl edit, patch, or delete on quota or pod objects. It escalates findings with used/hard values and top consumer pods so an on-call engineer can approve and apply any changes.

Why does a Deployment fail to scale when cluster capacity is available?

Namespace-level ResourceQuota can block scaling even when nodes have free capacity, because quota is enforced per namespace by the admission controller. Check whether remaining quota (hard minus used) is smaller than the new pod's resource requests.