Skip to main content
Welcome to the Learn by Doing course: Kubernetes Policies with Kyverno. Instructors: Vijin Palazhi and Srinivas. This hands‑on course is built for DevOps engineers, system administrators, and cloud professionals who want practical experience creating, validating, and enforcing Kubernetes policies using Kyverno. You will deploy Kyverno in a Kubernetes cluster, author policies, test them, and apply best practices to improve cluster security and compliance. By the end of this course you will be able to:
  • Install and configure Kyverno in a Kubernetes cluster.
  • Write validation and mutation policies.
  • Test and iterate on policies safely.
  • Apply advanced patterns and enforce organizational compliance.
The image shows the Kyverno logo for Kubernetes policies at the top, with icons and labels for "Efficient Policy Management," "Validation," and "Enforcement" below.
This lesson uses short, focused labs with an Overview and step‑by‑step Tasks. Think of the Overview tab as the lesson content and the Tasks tab as your workbook. The Overview opens by default. To work in each lab:
  • Open the terminal using the terminal toggle icon in the lab UI. This provides an interactive shell connected to a live Kubernetes cluster.
  • If you get stuck, use the Hint and Solution tabs.
  • Use the Check button to validate task results and advance through exercises.
When using the default nginx image in examples, use /bin/sh for an interactive shell because bash may not be available.
The examples in this course sometimes run containers as root for demonstration. Never run root containers in production—use least privilege and a proper securityContext.
Representative lab example — a pod running as root (for demonstration only). Save this as root-pod.yaml and apply it to inspect the container filesystem:
Commands to apply and inspect:
Course structure — topics are arranged to build skills progressively: Finally, you will complete a Kyverno policy challenge that consolidates the lessons into a practical scenario.
The image is a course topics overview for a Kyverno and Kubernetes policy course, with six topics listed, including setting up Kyverno, creating policies, and validation.
Ready to begin? Start with the first lab to install Kyverno and create your first policy. Links and references

Watch Video