<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Pvcs_show_total_mounts</id>
	<title>Pvcs show total mounts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Pvcs_show_total_mounts"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Pvcs_show_total_mounts&amp;action=history"/>
	<updated>2026-04-24T06:25:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Pvcs_show_total_mounts&amp;diff=5610&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` #!/bin/bash  echo &quot;Mounted PVCs (namespace/pvc -&gt; pod on node):&quot; echo  kubectl get pods --all-namespaces -o json | jq -r '   .items[] |   . as $pod |   .spec.volumes[]? |...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Pvcs_show_total_mounts&amp;diff=5610&amp;oldid=prev"/>
		<updated>2025-07-28T20:10:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` #!/bin/bash  echo &amp;quot;Mounted PVCs (namespace/pvc -&amp;gt; pod on node):&amp;quot; echo  kubectl get pods --all-namespaces -o json | jq -r &amp;#039;   .items[] |   . as $pod |   .spec.volumes[]? |...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Mounted PVCs (namespace/pvc -&amp;gt; pod on node):&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
&lt;br /&gt;
kubectl get pods --all-namespaces -o json | jq -r '&lt;br /&gt;
  .items[] |&lt;br /&gt;
  . as $pod |&lt;br /&gt;
  .spec.volumes[]? |&lt;br /&gt;
  select(.persistentVolumeClaim != null) |&lt;br /&gt;
  &amp;quot;\($pod.metadata.namespace)\t\(.persistentVolumeClaim.claimName)\t\($pod.metadata.name)\t\($pod.spec.nodeName)&amp;quot;&lt;br /&gt;
' | sort | uniq | column -t -s $'\t'&lt;br /&gt;
&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;Total actively mounted PVCs: $(kubectl get pods --all-namespaces -o json | jq '[.items[].spec.volumes[]? | select(.persistentVolumeClaim != null)] | length')&amp;quot;&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>