diff --git a/pkg/controllers/kube-apiserver.go b/pkg/controllers/kube-apiserver.go index fa61480858f..6fe70a17e13 100644 --- a/pkg/controllers/kube-apiserver.go +++ b/pkg/controllers/kube-apiserver.go @@ -118,6 +118,7 @@ func (s *KubeAPIServer) configure(cfg *config.MicroshiftConfig) { if cfg.AuditLogDir != "" { args = append(args, "--audit-log-path="+filepath.Join(cfg.AuditLogDir, "kube-apiserver-audit.log")) + args = append(args, "--audit-log-maxage=7") } // fake the kube-apiserver cobra command to parse args into serverOptions