Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

refactor resource requests and limits for init containers and lifecycle sidecar #532

Closed
wants to merge 3 commits into from

Conversation

kschoche
Copy link
Contributor

@kschoche kschoche commented Jul 7, 2020

We now define resources for the connect inject init copy container in values.yaml and standardize usage of CPU Limit/Request and Memory Limit/Request for it across the ingress/terminating/mesh gateways and connect-inject deployments via new entries in the values.yaml file.

These are passed in as command line arguments to consul-k8s and are thereby are now configurable.
This PR resolves #515 and resolves #529 by increasing the default cpu request+limit and memory limit, respectively, making them configurable to the user.

@kschoche kschoche added bug Something isn't working enhancement New feature or request labels Jul 7, 2020
Copy link
Contributor

@thisisnotashwin thisisnotashwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 This is a work of art! Made some minor suggestions because uniformity 🙃

templates/ingress-gateways-deployment.yaml Outdated Show resolved Hide resolved
templates/ingress-gateways-deployment.yaml Show resolved Hide resolved
templates/connect-inject-deployment.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
templates/ingress-gateways-deployment.yaml Show resolved Hide resolved
templates/mesh-gateway-deployment.yaml Outdated Show resolved Hide resolved
templates/mesh-gateway-deployment.yaml Show resolved Hide resolved
templates/terminating-gateways-deployment.yaml Outdated Show resolved Hide resolved
@lkysow
Copy link
Member

lkysow commented Jul 7, 2020

Oh, we also need to add tests that the resources are getting set as expected for the gateways and for connect-inject that those flags are being passed as expected. There's already some tests there that you can look at.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

consul-connect-inject-init terminates lifecycle-sidecar at 100% of CPU limit
3 participants