How to get all the running pods for a specific Helm release
To get all the running pods for a specific Helm release, you can use kubectl and filter by the Helm release label.
Here’s a command that works in most cases:
Explanation:
-
-l "release=<release-name>": Filters pods by the Helm release label. -
--field-selector=status.phase=Running: Only returns pods inRunningstate. -
-A: Checks across all namespaces
Example:
If you're unsure about the labels used by Helm (as newer versions might use different labels), you can find them by inspecting the resources:
Or for just pods:
No comments