<p>It seems a silly question, but how do I expand the &quot;+ 1 more...&quot; from the endpoints list?</p>
<p>Particularly I want to see all the endpoints of a service and the following command hides some endpoints behind the &quot;+ 1 more...&quot;.</p>
<pre><code>   kubectl describe service &lt;name&gt;
</code></pre>
<p>I tried this:</p>
<pre><code>   kubectl get endpoints -o wide
</code></pre>
<p>It still doesn't show the hidden one.</p>
<p>Thanks</p>

bunky
<p>An interesting approach would be to output the json and extract the relevant fields. This is useful if you want to analyse the output after. You may want to add the namespace in case you have multiple.</p>
<p>Single command:</p>
<pre><code>kubectl get endpoints -o jsonpath=&quot;{range .items[*]}{.metadata.name},{.subsets[*].addresses[*].ip}{'\n'}{end}&quot;
</code></pre>
<p>Bash script</p>
<pre><code>#!/usr/bin/env bash

for service in `kubectl get endpoints -o jsonpath=&quot;{range .items[*]}{.metadata.name},{.subsets[*].addresses[*].ip}{'\n'}{end}&quot;`; do
  echo $service | awk -F, {'print $1'}
  for endpoint in $(echo $services | awk -F, {'print $2'}); do
    echo $endpoint
  done
done
</code></pre>
