Print ingress names and hosts.
Section: JSONPath Output Recipes
List ingress hosts
bash
bash
kubectl get ingress -n payments -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.rules[*].host}{"\n"}{end}'Explanation
Print ingress names and hosts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing JSONPath Output Recipes