-
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
docs: describe the config file format in the CLI docs #2473
base: main
Are you sure you want to change the base?
Conversation
Provide some information on how to use the config file for more complex kube-state-metrics, instead of complex and very long command lines.
|
Welcome @ringerc! |
/assign @rexagod |
Yes I know I need to sign the CLA. My org is being painfully slow about assigning a CLA manager. |
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 |
I've been able to complete the CLA now @rexagod . It's unclear why it hasn't updated the status to accepted, as the CLA bot shows the CLA as accepted in its own UI now. |
/easycla |
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.
Thank you for the changes!
|
||
The above CLI options may also be set via a YAML-format config-file whose path is supplied as the `--config` argument on the CLI. | ||
|
||
The option names are defined in [`type Options` in `pkg/options/options.go`](https://github.com/kubernetes/kube-state-metrics/blob/main/pkg/options/options.go#L42). |
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.
The option names are defined in [`type Options` in `pkg/options/options.go`](https://github.com/kubernetes/kube-state-metrics/blob/main/pkg/options/options.go#L42). | |
The option names are defined in [`options.go`](https://github.com/kubernetes/kube-state-metrics/blob/main/pkg/options/options.go#L42). |
- eks.amazonaws.com/nodegroup-image | ||
``` | ||
|
||
### Using a config file with Kubernetes |
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.
This isn't specific to KSM, but general knowledge to mount any configmap. Can we drop this?
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ringerc The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Update the CLI documentation to provide some information on how to use the config file for more complex kube-state-metrics, instead of complex and very long command lines.
How does this change affect the cardinality of KSM:
No change. Documentation only.