COO-1063: fix: set default resource requests and limits on Alertmanager and Thanos sidecar#1094
COO-1063: fix: set default resource requests and limits on Alertmanager and Thanos sidecar#1094jan--f wants to merge 1 commit into
Conversation
…nos sidecar (COO-1063) When a ResourceQuota is set on the namespace, Alertmanager and Prometheus pods fail to start because the Alertmanager container and Thanos sidecar container don't have resource requests/limits. Propagate the MonitoringStack's resource requirements to both components, matching what is already done for the Prometheus container. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
|
@jan--f: This pull request references COO-1063 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jan--f The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR adds resource propagation from Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
hmm wouldn't that be too inflexible/restrictive? In general Prometheus requires higher resources than Alertmanager and Thanos sidecar. Also it would double the requests for the Prometheus pods? |
When a ResourceQuota is set on the namespace, Alertmanager and Prometheus pods fail to start because the Alertmanager container and Thanos sidecar container don't have resource requests/limits. Propagate the MonitoringStack's resource requirements to both components, matching what is already done for the Prometheus container.