title: How do I list all pods controlled by deployments only?
body: <p>i would like to list all pods of a specific namespace but only those that are controlled by deployment
  i have tried this but didn't succeed:
  <code>kubectl get pods --all-namespaces -o json | jq -r '.items | map(select(.metadata.ownerReferences == deployment ) | .metadata.name) | .[]'</code></p>
  <p>I use this command:
  <code>kubectl get pods -o=jsonpath='{range .items[*]}{.metadata.namespace}{&quot;\t&quot;}{.spec.containers[*].name}{&quot;\n&quot;}{end}' --all-namespaces |sed 's/\t/\'$'\\/g' | sort | uniq</code>
  to list all containers and their namespaces so i want the same but filtering out all non-deployments kind</p>