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.
More easy Kyverno questions
- Which Kubernetes API group does Kyverno use for its resources?
- What is the difference between a ClusterPolicy and a Policy in Kyverno?
- Which of the following is NOT a valid rule type in a Kyverno policy?
- Which command is used to generate a policy from a resource?
- Which command is used to check if Kyverno is ready in a Kubernetes cluster?
- Which apiVersion does a Kyverno CLI kyverno-test.yaml file use?