feat: #2501 Count volumes attached to a node
What this PR does / why we need it:
Count volumes attached to a node
How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
increaser two metrics: kube_node_volumes_attached_count and kube_node_volumes_in_use_count
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 #2501
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: LiuQhahah Once this PR has been reviewed and has the lgtm label, please assign dgrisonnet for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/triage accepted /assign
Would you mind sharing the use case of this?
Would you mind sharing the use case of this?
TLDR: The number of volumes that can be attached to a Node is hard-limited for different hosting providers and thus should be monitored and alerted when approaching the limit.
https://github.com/kubernetes/kube-state-metrics/issues/2501