Skip to content
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

StalePersistentVolumeClaim triggers for any ephemeral PVC #106

Open
Quarky9 opened this issue Dec 7, 2023 · 2 comments
Open

StalePersistentVolumeClaim triggers for any ephemeral PVC #106

Quarky9 opened this issue Dec 7, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Quarky9
Copy link

Quarky9 commented Dec 7, 2023

StalePersistentVolumeClaim triggers for any ephemeral volume most likely due to the fact that ephemeral volumes do not have a matching claimName in the pod but rather the volume template itself.

This also manifests in the fact that "Used by" is empty for any emphemeral volume in eg .kubectl describe pvc

All this leads to kube_pod_spec_volumes_persistentvolumeclaims_info missing which then triggers the alert.

No idea where is the right place to fix this yet tbh.

@avishnu avishnu added the help wanted Extra attention is needed label Sep 13, 2024
@abhilashshetty04
Copy link
Member

Hi @Quarky9 , This rule was mainly deployed to make sure to notify user on any pvc that is not claimed by Pod. I guess ephemeral volume doesnt create pvc object. Correct me if im wrong.

@Quarky9
Copy link
Author

Quarky9 commented Sep 19, 2024

The generic Ephemeral Volumes create PVCs. Difference is they have an ownerReference set which causes them to be deleted once the owner, normally the pod gets deleted.

Recent changes in kubectl though now fill in the UsedBy ( at least since 1.29 ) for kubectl describe pvc calls.

The kube_pod_spec_volumes_persistentvolumeclaims_info is still missing for any ephemeral PVC in 1.29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants