talira

Unified Policy as Code

open sourceApache-2.0self-hostablefree

Kyverno is a policy engine for Kubernetes whose policies are Kubernetes resources written in YAML and CEL, so there's no new policy language to learn. Running as an admission controller and in background scans, it validates, mutates, generates and cleans up resources, verifies container image signatures (Sigstore Cosign and Notary), and records results as policy reports, with policy exceptions for workloads that need them. The Kyverno CLI applies and tests policies against manifests in CI before they reach a cluster, the policies can also check other JSON payloads such as Terraform resources, and a library of ready-made policies covers Pod Security Standards and other best practices. It was created by Nirmata, is licensed Apache-2.0 and is a CNCF graduated project.

Ways to install

Problems it solves

  • block pods that run as root or privileged from being deployed to our cluster
  • enforce Kubernetes policies without learning Rego
  • only allow container images from our own registry, and only signed ones
  • add default labels, resource limits or sidecars to workloads automatically when they're created
  • create a default NetworkPolicy and quota in every new namespace
  • enforce Pod Security Standards with exceptions for a few system workloads
  • check Helm and Kubernetes manifests against our policies in CI before they're applied
  • a report of which existing workloads break our cluster rules
  • require readiness probes, resource requests and cost allocation labels on every deployment
  • delete stale resources in the cluster automatically after a while
  • copy a secret or config map into every namespace that needs it
  • write admission policies in CEL like the native ValidatingAdmissionPolicy but with reporting

Features

  • validate, mutate, generate and clean up resources
  • policies written as Kubernetes resources in YAML and CEL
  • admission control and background scans
  • container image signature verification with Sigstore Cosign and Notary
  • policy reports in the OpenReports format
  • policy exceptions
  • Kyverno CLI to apply and test policies in CI/CD
  • policies for non-Kubernetes JSON payloads such as Terraform resources
  • library of ready-made policies
  • Helm chart with high availability settings
View 1 more
  • online playground

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Kyverno does.

  1. Gatekeeper Policy Controller for Kubernetes
  2. Kubewarden Manage admission policies in your Kubernetes cluster with ease
  3. Conftest Write tests against structured configuration data using the Open Policy Agent Rego query language
  4. Open Policy Agent An open source, general-purpose policy engine that unifies policy enforcement across the stack

Compare Kyverno with the top 3