Kyverno
Medium
Policies
What is the purpose of the 'background' field in a Kyverno policy?
Select your answer:
Show answer and explanation
Answer: To apply the policy to existing resources in addition to newly created ones
Explanation
The 'background' field, when set to true, applies the policy to existing resources in addition to newly created or updated ones. This is useful for ensuring all resources in the cluster comply with the policy, not just new ones.
More medium Kyverno questions
- What is the purpose of the 'validationFailureAction' field in a Kyverno policy?
- Which of the following is a valid JMESPath expression in a Kyverno policy?
- What is the purpose of the 'exclude' field in a Kyverno policy?
- What is the purpose of the 'preconditions' field in a Kyverno rule?
- Which of the following is a valid pattern matching syntax in Kyverno?
- What is the purpose of the 'audit' value for 'validationFailureAction' in a Kyverno policy?