diff --git a/cmd/memberagent/main.go b/cmd/memberagent/main.go index 0c8f6f1bb..9e328a6fb 100644 --- a/cmd/memberagent/main.go +++ b/cmd/memberagent/main.go @@ -177,6 +177,12 @@ func main() { DefaultNamespaces: map[string]cache.Config{ mcNamespace: {}, }, + // Strip managed fields from the objects to reduce memory usage. + // + // Note (chenyu1): the work applier does read the managedFields field, + // however, it concerns only objects from the member cluster side, which + // are not managed by this cache. + DefaultTransform: cache.TransformStripManagedFields(), }, }