plugins/enforce/skills/kyverno-resource-governance-templates/SKILL.md
Kyverno resource governance policies enforcing CPU/memory limits, HPA requirements, and storage constraints for Kubernetes workloads.
npx skillsauth add adaptive-enforcement-lab/claude-skills kyverno-resource-governance-templatesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Resource governance policies prevent overconsumption, enforce autoscaling requirements, and control storage allocation across your cluster.
Resource Limits Prevent Noisy Neighbors
Without resource limits, a single pod can consume all node capacity and starve other workloads. Enforce limits to guarantee fair resource allocation.
Require resource limits on all containers:
# Enforced by: limits.yaml
# Result: All containers must define resources.limits.cpu and resources.limits.memory
# Impact: Prevents single pod from consuming entire node capacity
Require HPA for production Deployments:
# Enforced by: hpa.yaml
# Result: Deployments in prod-* namespaces must have corresponding HPA
# Impact: Ensures production services scale automatically under load
Restrict PVC size to prevent excessive allocations:
# Enforced by: storage.yaml
# Result: PVCs cannot exceed 100Gi in dev namespaces
# Impact: Prevents accidental provisioning of expensive storage volumes
See the full implementation guide in the source documentation.
Use both mechanisms for defense in depth:
Kyverno policies complement quotas by validating workload-level configuration before admission.
Set appropriate resource values to balance cost and reliability:
Use Vertical Pod Autoscaler (VPA) recommendations to identify optimal values.
Choose the right autoscaling mechanism for your workload:
Kyverno policies enforce HPA presence and configuration validity.
See reference.md for additional techniques and detailed examples.
See examples.md for code examples.
See reference.md for complete documentation.
documentation
Workload Identity Federation implementation guide. GKE setup, IAM bindings, ServiceAccount configuration, migration from service account keys, and troubleshooting patterns.
development
Secure GitHub Actions trigger patterns for pull requests, forks, and reusable workflows. Preventing privilege escalation and code injection through trigger misconfiguration.
development
Structured framework for evaluating GitHub Actions security before adoption. Trust tiers, risk assessment checklist, and decision tree for action evaluation.
testing
Securely store GitHub App credentials across different environments. GitHub Actions secrets, external CI, Kubernetes, and automated rotation patterns.