How to get list of pods that are not linked to any service
Lets say i have pods:
Svc1-green-xyz
and svc1-blue-lmn
Service svc1
is served by svc1-green-xyz
. With svc1-blue-lmn
is a prior version of the same service and is not used.
I want to select all such unused pods that are not serving any service and delete them. How can this be done. Is there a helm command that can be used?