Skip to content

Conversation

@gman0
Copy link
Collaborator

@gman0 gman0 commented Aug 4, 2023

This PR makes it so that the nodeplugin shares its internal /cvmfs autofs root via a hostPath instead of an emptyDir.

kubelet periodically scrapes metrics from all emptyDir volumes by walking trough them recursively, stat()-ing each item. This however resets the autofs mount expiry timeout, making it impossible to automatically unmount unused CVMFS repos. This escaped testing because the mount expiration timeout was shorter than the metrics scraping period.

The workaround for this is to share /cvmfs via a hostPath which is not included by the metrics, avoiding the issue.

@gman0 gman0 force-pushed the fix-autofs-expiry branch 3 times, most recently from 1dad7ee to 9b1dca4 Compare August 10, 2023 15:48
This commit makes it so that the nodeplugin shares its internal
/cvmfs autofs root via a hostPath instead of an emptyDir.

kubelet periodically scrapes metrics from all emptyDir volumes by
walking trough them recursively, stat()-ing each item. This however
resets the autofs mount expiry timeout, making it impossible to
automatically unmount unused CVMFS repos. The workaround for this is
to share /cvmfs via a hostPath which is not included by the metrics,
avoiding the issue.
@gman0 gman0 force-pushed the fix-autofs-expiry branch from 9b1dca4 to 19c68b7 Compare August 10, 2023 15:52
@gman0 gman0 merged commit f7bdf35 into cvmfs-contrib:master Aug 10, 2023
gman0 added a commit that referenced this pull request Aug 11, 2023
(Backport #104) chart: move autofs root to hostPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant