Day 1: Write, test, and introduce Kubernetes policies step by step
5 topics, Tap to openTap to close
10:00–11:00Compare Kubernetes Validation with Kyverno
The Kubernetes API can evaluate certain API requests itself with the CEL expression language, while Kyverno provides additional policy workflows. Using a shared Kubernetes validation requirement, you compare native ValidatingAdmissionPolicy with Kyverno in operation and consider when the native option is sufficient. Example workloads illustrate evaluation location and feedback.
11:00–12:00CEL Fundamentals for Kubernetes Rules
CEL describes conditions that Kubernetes and Kyverno evaluate without imperative control flow. You extend a simple rule with safe field access, variables, all, and exists while considering CREATE and UPDATE. In the lab environment, you vary missing and unexpected fields and examine how the expression responds.
13:00–14:00Develop and Test a Validation Rule
A policy is useful only when it targets exactly the intended resources. You complete a ValidatingPolicy with scope, a CEL expression, and clear feedback. In the DevNinjas Dojo, our cloud learning environment, you compare offline evaluation with admission behaviour in the cluster for the same policy cases to consider differences between both execution paths.
14:00–15:00Interpret Policy Results Correctly
Before blocking enforcement, the affected resource estate must be understandable. You compare new API requests with background checks of stored resources and interpret the different result types. In the lab environment, you examine which findings still need to be clarified before rollout and before you consider a blocking rule.
15:00–16:00Move from Observation to Blocking
An exception needs a reason, an owner, and tightly constrained scope. In the training environment, you define a PolicyException through policy references and match conditions and examine matching and non-matching requests. In the lab, you compare Audit and Deny; you discuss rollback for a controlled introduction.

