k8wiz
Kyverno
Medium
Policies

Which of the following is a valid way to exclude system namespaces in a Kyverno policy?

Select your answer:

Show answer and explanation

Answer: exclude: { namespaces: [kube-system, kube-public] }

Explanation

The correct syntax to exclude system namespaces in a Kyverno policy is 'exclude: { namespaces: [kube-system, kube-public] }'. This excludes resources in the kube-system and kube-public namespaces from being subject to the policy.

Read more about Kyverno