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 compute resource patch to limit resources #87

Merged
merged 10 commits into from
Aug 3, 2022
Merged

Conversation

sed-i
Copy link
Contributor

@sed-i sed-i commented Jul 22, 2022

Issue

Need to be able to limit resource usage of a charm.

Solution

  • Use lib to patch k8s compute resource limits and requests.
  • Automatically deduce "requests" from "limit"

Context

observability-libs/19.

Testing Instructions

  • Deploy charm and look at kubectl describe statefulset -n welcome alertmanager-k8s.
  • itests.

Release Notes

Use compute resource patch to limit resources.

@sed-i
Copy link
Contributor Author

sed-i commented Aug 2, 2022

As-is, itests will fail until canonical/microk8s-core-addons#73 is merged and released.

@sed-i sed-i marked this pull request as ready for review August 2, 2022 19:00
@dstathis
Copy link
Contributor

dstathis commented Aug 2, 2022

We should probably wait for the lib to be published right?

@rbarry82
Copy link
Contributor

rbarry82 commented Aug 2, 2022

For the updates based on today's comments? Probably. The patch fixing the itests is great though

@sed-i sed-i merged commit bcbdd0d into main Aug 3, 2022
@sed-i sed-i deleted the feature/resource-patch branch August 3, 2022 14:36
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.

None yet

3 participants