If you are transitioning from OPA Gatekeeper to Kyverno policies, see the Gatekeeper vs. Kyverno Policy Comparison for assistance.
Each policy has the following features:
policies.kyverno.io/title: name of the policy
policies.kyverno.io/category: policy catigory (e.g. security, best practice)
policies.kyverno.io/severity: the seriousness that should be taken for violations of this policy. Values will be
policies.kyverno.io/subject: the Kubernetes resource(s) targeted by the policy (e.g.
policies.kyverno.io/description: a full description of the what the policy does and why it is important
If you need to create a policy exception, see the Exception Guide.
Some policies have had values parameterized to make it more flexible. These values will be listed under
Custom policies can be created by adding them to the
additionalPolicies key as a map. See the
samplePolicy in values.yaml for instructions on how to add policies.