<p>When ruining <code>kubectl describe service MyService</code> command and can get the details of my kubernetes service as per below sample:
<a href="https://i.stack.imgur.com/xQ3wP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xQ3wP.png" alt="enter image description here"></a></p>

<p>I am only interested to get the value of <strong>LoadBalancer Ingress</strong> metadata. Is there a way to retrieve this specific metadata using <code>kubectl describe</code> command? </p>

Benjamin
<p>I think it's better to use the get method and the go-template output :</p>

<p><code>kubectl get svc MyService -o go-template --template='{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}'</code></p>

<p>Otherwise (but I don't recommend it), use bash tools like grep and cut </p>

<pre><code>kubectl describe svc MyService | grep "LoadBalancer Ingress" | cut -d ':' -f2
</code></pre>
