Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lazy rest mapper for performance and less audit #116

Closed

Commits on Jun 26, 2023

  1. Use lazy rest mapper

    provider-kubernetes initialized a new kubernetes client for each
    reconcile. The REST mapper in controller-runtime used to fetch
    information about every CRD in the cluster.
    
    controller-runtime introduced a lazy restmapper which means we don't
    have to introduce any complex caching to get a significant performance
    boost in provider-kubernetes:
    
    kubernetes-sigs/controller-runtime#2116
    
    This seems to become the default in the next release:
    
    kubernetes-sigs/controller-runtime#2296
    
    But this is so significant that we want to update now:
    
    * CPU reduced from constant throttling at 0.4 cores to 0.04 cores
    
    * CloudWatch / EKS audit log costs reduced significantly (55% for our
      cluster, with a lot of provider-kubernetes resources)
    
    Signed-off-by: Carl Henrik Lunde <[email protected]>
    chlunde committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    c5b0f24 View commit details
    Browse the repository at this point in the history