chore: add audit-policy for kubernetes

This commit is contained in:
Jesús Pérez Lorenzo 2025-01-20 05:30:58 +00:00
parent 8bec74aba0
commit 4862afc4da

12
audit-policy.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: audit.k8s.io/v1 # This is required.
kind: Policy
# Don't generate audit events for all requests in RequestReceived stage.
omitStages:
- "RequestReceived"
rules:
# A catch-all rule to log all other requests at the Metadata level.
- level: Metadata
# Long-running requests like watches that fall under this rule will not
# generate an audit event in RequestReceived.
omitStages:
- "RequestReceived"