check which use running pods in kubernetes code example
Example: how get pods in kuber
# Get Pods in all namespaces
kubectl get po -A
# Get pods in default namespace
kubectl get po
# Get Pods in all namespaces
kubectl get po -A
# Get pods in default namespace
kubectl get po