feat: add deployment-based sharding example#2931
feat: add deployment-based sharding example#2931ystkfujii wants to merge 2 commits intokubernetes:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ystkfujii The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
This issue is currently awaiting triage. If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the The DetailsInstructions 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. |
|
Welcome @ystkfujii! |
What this PR does / why we need it:
This PR adds a deployment-based sharding example and documents it in the README.
The new example shows how to run kube-state-metrics shards as independent
Deploymentobjects with explicit shard assignments. This is useful for users who preferDeployment-based operations over automated sharding with aStatefulSet.It also documents the trade-offs of this approach, including the need to manage each shard separately and to keep shard configuration consistent across all shard
Deploymentobjects.How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
does not change cardinality