

kubectl get svc -A -o json | jq -r '
.items[]
| select(.spec.type=="NodePort")
| .metadata.namespace as $ns
| .metadata.name as $name
| .spec.ports[]
| [$ns, $name, .port, .nodePort]
| @tsv' | column -t