12 lines
432 B
YAML
12 lines
432 B
YAML
![]() |
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"
|