-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: add CustomResourceMonitor CRD (WIP) #2049
base: main
Are you sure you want to change the base?
feat: add CustomResourceMonitor CRD (WIP) #2049
Conversation
fyi: @chrischdi |
0169068
to
88613ae
Compare
Hey, thank you for working on this. Just a question right off the top of my mind, would this be better suited to be in a KSM operator? I remember a discussion started my @mrueg in the room highlighting the need for this feature a while back but we eventually held off on adding it for the sole reason of setting up an operator first, IIRC. |
Let's move that discussion over to the issue itself #1948, happy to collect the facts and opinions there to properly document a decision :-) Thanks @CatherineF-dev , I'll try to figure out time next week after kubecon to take a look at it 👍 🥳 |
Currently, one of these flags is added into kube-state-metrics deployment.
For example, for a company with two teams (monitoring platform team and application team), application team needs to change kube-state-metrics deployment managed by monitoring platform team.
|
|
||
```yaml | ||
# example cr | ||
apiVersion: customresource.ksm.io/v1alpha1 |
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.
I find *.k8s.io needs additional approvals. Planned to use customresource.ksm.k8s.io before.
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.
I'd prefer *.k8s.io
group for the CR given we exist under the same organization here.
Hi @dgrisonnet, could you help review this design doc when you're available? Thanks! |
Sure, I'll try to catch up on the various discussion asap |
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.
/assign
ad5da8a
to
b41f7d0
Compare
/triage accepted |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@CatherineF-dev Are you working on this? I see how this could be a large-enough issue entailing multiple cases to warrant more hands, and if so, feel free to bring this up in the next SIG call and we can have more folks contributing to your fork, if that sounds good! |
Yes, from previous discussion, I remember we plan to split KSM and KSM Custom Metrics into 2 binaries first. Then add CRD feature. So I haven't resolved conflicts in this PR. Waiting 2 binaries. (This prototype was working in my k8s cluster) |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
I believe we can get this in regardless, and include this change whenever the split happens. Getting this one in would resolve a lot of issues, in addition to deserving its own minor release. I'm +1 for making this happen pre-split, since we don't plan on doing that in the immediate future. |
/remove-lifecycle rotten |
mv discovery to app use interface to decouple customresourcestate and CRDiscoverer
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
c2f9fee
to
942e800
Compare
PR needs rebase. 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 kubernetes-sigs/prow repository. |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
@CatherineF-dev This PR would be very helpful |
What this PR does / why we need it:
What: A more user-friendly UX to collect custom resource metrics.
Why:
--custom-resource-state-config "inline yaml (see example)"
or--custom-resource-state-config-file /path/to/config.yaml
For example, for a company with 10 teams, each team wants to collect CustomResourceState metrics for their owned Custom Resources.
See more in design doc.
How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality) no
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2050 #1948
Design doc is ready to review while codes are proof-of-concepts.
Tested: 1. apply examples/cr.yaml 2. apply examples/cr2.yaml 3. delete two yamls.