k8wiz
Kyverno
Medium
Policies

What is the purpose of the 'match.resources.selector' field in a Kyverno policy?

Select your answer:

Show answer and explanation

Answer: To select which Kubernetes resources the policy applies to based on labels

Explanation

The 'match.resources.selector' field in a Kyverno policy is used to select which Kubernetes resources the policy applies to based on their labels. This allows for fine-grained control over which resources are subject to the policy.

Read more about Kyverno