Advertisement
Shokedbrain

Untitled

Dec 20th, 2021
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. apiVersion: audit.k8s.io/v1 # This is required.
  2. kind: Policy
  3. # Don't generate audit events for all requests in RequestReceived stage.
  4. omitStages:
  5. - "RequestReceived"
  6. rules:
  7. # Log pod changes at Request level
  8. - level: Request
  9. resources:
  10. - group: ""
  11. resources: ["pods"]
  12. # Log pod changes at RequestResponse level
  13. - level: RequestResponse
  14. resources:
  15. - group: ""
  16. resources: ["pods"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement