chore: add audit-policy for kubernetes
This commit is contained in:
parent
8bec74aba0
commit
4862afc4da
12
audit-policy.yaml
Normal file
12
audit-policy.yaml
Normal 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"
|
Loading…
Reference in New Issue
Block a user