Skip to content

Add resources requests and limits for kube-rbac-proxy.  #2428

@camilamacedo86

Description

@camilamacedo86

What do you want to happen?

Currently, the kube-rbac-proxy container does not have any resources amount set.
We ought to add at least the resource request for CPU and Memory for its container. The change to add the amount of the resource would be done in this [bollerplate]Ohttps://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/plugins/common/kustomize/v1/scaffolds/internal/templates/config/kdefault/manager_auth_proxy_patch.go#L56). However, we also need to check what values we could define by default here.

Why?

  • If a LimitRange is activated in a namespace for computing resources like CPU and memory, users must specify requests or limits for those values. Otherwise, the system may reject Pod creation.
  • If a resourQuota be configured and the pods do not have at least requests or limits for those values the system may reject Pod creation.

And then, the above configuration is commonly adopted and recommended in multi-tenancy and or production clusters. Also, setting values to the container would protect something that goes wrong with them which would make consume all available resources and/or affect other containers running on the cluster.

More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

Extra Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions