Giter Club home page Giter Club logo

Comments (3)

k8s-ci-robot avatar k8s-ci-robot commented on September 26, 2024

This issue is currently awaiting triage.

If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

from kube-state-metrics.

ricardoapl avatar ricardoapl commented on September 26, 2024

Hello @yummydsky,

I can't reproduce your issue with either v2.10.1 or v2.12.0 (latest):

kube-state-metrics /metrics

kube_pod_spec_volumes_persistentvolumeclaims_info{namespace="default",pod="task-pv-pod",uid="317729a4-7dfa-4f53-8569-a3245e6a6e75",volume="task-pv-storage",persistentvolumeclaim="task-pv-claim"} 1
kube_pod_spec_volumes_persistentvolumeclaims_info{namespace="default",pod="task-pv-pod",uid="317729a4-7dfa-4f53-8569-a3245e6a6e75",volume="task-pv-storage-2",persistentvolumeclaim="task-pv-claim-2"} 1

PromQL

{namespace="default", persistentvolumeclaim="task-pv-claim", pod="task-pv-pod", volume="task-pv-storage"}
{namespace="default", persistentvolumeclaim="task-pv-claim-2", pod="task-pv-pod", volume="task-pv-storage-2"}

Kubernetes

Client Version: v1.30.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.0

Any chance you could try a more recent version of Kubernetes? v1.21 reached End of Life 2022-06-28 [1]

[1] https://kubernetes.io/releases/patch-releases/#support-period

from kube-state-metrics.

yummydsky avatar yummydsky commented on September 26, 2024

@ricardoapl
Thanks for the quick reply.
Yes, you're right. This is not a bug.
That's my fault. It's my pod template issue, I just requested the volume but did not mount it to a specific folder, so the metric works as expected.

from kube-state-metrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.