Skip to content

Commit

Permalink
Add log rotation configuration for VM Agent (#5366)
Browse files Browse the repository at this point in the history
Signed-off-by: Mengdie Song <[email protected]>
  • Loading branch information
mengdie-song authored Aug 18, 2023
1 parent ff855cc commit 5199aa3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build/yamls/externalnode/conf/antrea-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ featureGates:
# Enable collecting support bundle files with SupportBundleCollection CRD.
SupportBundleCollection: true

# Log rotation configuration for audit logs.
auditLogging:
# MaxSize is the maximum size in MB of a log file before it gets rotated.
maxSize: 500
# MaxBackups is the maximum number of old log files to retain. If set to 0,
# all log files will be retained (unless MaxAge causes them to be deleted).
maxBackups: 3
# MaxAge is the maximum number of days to retain old log files based on the
# timestamp encoded in their filename. If set to 0, old log files are not
# removed based on age.
maxAge: 28
# Compress enables gzip compression on rotated files.
compress: true
# Name of the OpenVSwitch bridge antrea-agent will create and use.
# Make sure it doesn't conflict with your existing OpenVSwitch bridges.
#ovsBridge: br-int
Expand Down

0 comments on commit 5199aa3

Please sign in to comment.