Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: audit.k8s.io/v1 # This is required.
- kind: Policy
- # Don't generate audit events for all requests in RequestReceived stage.
- omitStages:
- - "RequestReceived"
- rules:
- # Log pod changes at Request level
- - level: Request
- resources:
- - group: ""
- resources: ["pods"]
- # Log pod changes at RequestResponse level
- - level: RequestResponse
- resources:
- - group: ""
- resources: ["pods"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement