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

ephemeral storage resources #360

Merged
merged 4 commits into from
Aug 16, 2022
Merged

Conversation

beorereleverion
Copy link
Contributor

@beorereleverion beorereleverion commented Jun 14, 2022

this PR resolve #361 and #310

@hashicorp-cla
Copy link

hashicorp-cla commented Jun 14, 2022

CLA assistant check
All committers have signed the CLA.

@beorereleverion
Copy link
Contributor Author

Hello. Can anyone review this pr?

@apolubotko
Copy link

Hi,

We have been waiting for this change for a very long time, we will be very happy to see it in the master branch

@beorereleverion
Copy link
Contributor Author

@tvoran @swenson Hello, can you review this pr? please

Copy link
Contributor

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

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

Thanks for implementing this! I gave it a test run and it all worked really nicely, with just one tiny bug where the flags specifying the defaults weren't being threaded through. I also added a little changelog note, just to save a trivial review round.

@tomhjp tomhjp merged commit afb8b8a into hashicorp:main Aug 16, 2022
@Kyslik
Copy link

Kyslik commented Sep 23, 2022

This seems to be breaking change - that's not clearly communicated :(. Can you also include a note in the docs that you have/should to specify resources.limits.ephemeral-storage for all containers in the pod otherwise you are risking to have your pods evicted; more in https://github.com/kubernetes/kubernetes/blob/v1.25.0/pkg/kubelet/eviction/eviction_manager.go#L453-L479

Although you can only specify requests and limits for individual containers, it is also useful to think about the overall resource requests and limits for a Pod. For a particular resource, a Pod resource request/limit is the sum of the resource requests/limits of that type for each container in the Pod.

From https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#setting-requests-and-limits-for-local-ephemeral-storage


Using ENV variable (AGENT_INJECT_EPHEMERAL_LIMIT) one can not disable ephemeral-storage limits either, because how the checks for default are implemented. The only option is to use annotation vault.hashicorp.com/agent-limits-ephemeral which is not ideal, because you have to update all your deployments...

@tomhjp
Copy link
Contributor

tomhjp commented Sep 26, 2022

Thanks @Kyslik, apologies for the inconvenience. I think #386 should fix this by defaulting the ephemeral storage resources to unset, so it will then only be an explicitly opt-in feature. Feel free to leave any comments you have in the review.

@Kyslik
Copy link

Kyslik commented Sep 26, 2022

Thanks @Kyslik, apologies for the inconvenience. I think #386 should fix this by defaulting the ephemeral storage resources to unset, so it will then only be an explicitly opt-in feature. Feel free to leave any comments you have in the review.

No worries; we learned something new here :). Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ephemeral storage limits and requests in annotation
5 participants