Skip to content

[webhook] reduce memory usage of the webhook #1152

@dprotaso

Description

@dprotaso

Expected Behavior

Webhook memory usage should remain somewhat linear with the resources that are being watched

Actual Behavior

@sravankumar777 reported high memory usage here: knative/serving#7195

I think it's because our informers are watching all secrets here: https://github.com/knative/pkg/blob/master/webhook/certificates/controller.go#L59

Steps to Reproduce the Problem

  1. See Memory usage for knative webhook gradually increases over the time until memory limit is reached serving#7195

Additional Info

We should ensure we're scoping other informers appropriately as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/APIkind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions