-
Notifications
You must be signed in to change notification settings - Fork 1k
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
chore: helm - add servicemonitor api condition #7695
Conversation
✅ Deploy Preview for karpenter-docs-prod canceled.
|
@splichy I don't have a huge issue with the change, but I'm curious why you can't just disable the use of the |
@jonathan-innis Yes, I can set servicemonitor.enabled=false, but that just adds an unnecessary manual step into deployment, as Prometheus is deployed in the next wave. |
But the question is that this CR won't then be installed once you enable Prometheus, right? You're going to have to some new deployment of Karpenter anyways, so why not just use that deployment to enable the serivceMonitor? |
We are using ArgoCD, so with auto-sync enabled it will install service monitor right after Prometheus, we are using sync waves where karpenter has higher priority than prometheus - it's a little bit chicken egg problem |
Ah, I got you -- that's interesting -- makes sense to me -- didn't even think about the GitOps auto-remediation use-case! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Pull Request Test Coverage Report for Build 13240939870Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Co-authored-by: Jason Deal <[email protected]>
Fixes #N/A
Description
Add servicemonitor condition check if monitoring.coreos.com/v1 is available
This will prevent failure when Prometheus CRDs are not installed yet, e.g. during initial cluster installation, where we usually want to install Karpenter before other services
How was this change tested?
Does this change impact docs?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.