<p>I'd like to retrieve all of the ingresses that act on a Kubernetes service.</p>
<p>I can get the ingresses in a namespace with the command <code>kubectl get ingress -n &lt;namespace&gt;</code>.</p>
<p>Is there a command in kubectl that lets me fetch the ingresses that act on a specific Kubernetes service?</p>

ktm5124
<p>To get all ingress rules in the cluster, you can run:</p>
<pre><code>kubectl get ingress -A
</code></pre>
<p>To get a summary of all ingress rules (including their used services), you can run this:</p>
<pre><code>kubectl describe ingress -A
</code></pre>
<p>To get the full ingress objects but in json format, you can run this:</p>
<pre><code>kubectl get ingress -A -o json
</code></pre>
<p>You could then parse that json to get the used services.</p>
