kyverno-basics

Automate Kubernetes admission policy deployment and governance with Kyverno.

3|3|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/adaptive-enforcement-lab/claude-skills --skill kyverno-basics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kyverno-basics
Source: https://github.com/adaptive-enforcement-lab/claude-skills/tree/main/plugins/enforce/skills/kyverno-basics
Command: npx skills add https://github.com/adaptive-enforcement-lab/claude-skills --skill kyverno-basics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Kyverno helps teams enforce Kubernetes configurations by validating, mutating, and generating resources through policy definitions, reducing misconfigurations and security gaps.

Core Features & Use Cases

  • Policy-driven admission control: validate and mutate resources during creation or update.
  • Audit-first rollout: test policies in Audit mode before Enforce.
  • Policy as code: define policies in YAML and manage via Helm or kubectl.
  • Use Case: apply a sample ClusterPolicy to require resource limits on deployments and generate policy reports.

Quick Start

Install Kyverno using Helm and apply a sample policy to enforce resource constraints.

Frequently Asked Questions about kyverno-basics

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

FAQPage Schema
How do I enforce Kubernetes admission control policies using Kyverno?

You can enforce Kubernetes admission control policies by defining ClusterPolicy resources in YAML and applying them via kubectl or Helm. Kyverno uses webhooks to validate, mutate, and generate resources during creation or updates.

How do I install Kyverno with Helm and apply a sample policy?

Install Kyverno with Helm and apply a sample policy to enforce resource constraints. The process automates deployment through Helm-based installation, followed by applying YAML definitions and webhook configurations to validate resources.

Can I test Kyverno policies in audit mode before switching to enforce?

Yes, you can test Kyverno policies in audit mode before switching to enforce. This audit-first rollout approach allows you to evaluate policy-as-code validation and review policy reports without blocking resource creation.

Does Kyverno support policy-as-code for validating and mutating Kubernetes resources?

Kyverno supports policy-as-code by allowing you to define admission control rules in YAML. These policies validate and mutate Kubernetes resources directly through webhook configurations during cluster operations.

What is the best way to require resource limits on deployments using policy-as-code?

The best way to require resource limits on deployments is by applying a sample ClusterPolicy in YAML. This policy-as-code approach uses Kyverno's admission control webhooks to validate resource constraints and generate policy reports.

Why use Kyverno for policy-driven admission control instead of other policy-as-code tools?

Kyverno provides policy-driven admission control specifically for Kubernetes, allowing you to define validation, mutation, and generation rules in YAML. It integrates natively with Helm and kubectl workflows to reduce misconfigurations and security gaps.