k8wiz
Kyverno
Easy
CLI

Which command is used to test a Kyverno policy against a resource without applying it to the cluster?

Select your answer:

Show answer and explanation

Answer: kyverno test policy.yaml resource.yaml

Explanation

The 'kyverno test' command is used to test a policy against a resource without applying it to the cluster. This is useful for policy development and testing.

Read more about Kyverno