<p>Is there any way that <code>kubectl get nodes</code> would output for example only one node name without any other info just the name? for example node ending with 1.</p>
<p>so instead of something like this:</p>
<pre><code>NAME                                STATUS   ROLES   AGE   VERSION
aks-nodepool1-00000000-vmss000000   Ready    agent   1m   v1.23.12
aks-nodepool1-00000000-vmss000001   Ready    agent   1m   v1.23.12
</code></pre>
<p>just this
<code>aks-nodepool1-00000000-vmss000001</code></p>

Montana
<p>You can use the output option:</p>
<pre><code> -o, --output='':
        Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath,
        jsonpath-as-json, jsonpath-file, custom-columns, custom-columns-file, wide). See custom columns
        [https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns], golang template
        [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template
        [https://kubernetes.io/docs/reference/kubectl/jsonpath/].
</code></pre>
<p>So you can do</p>
<pre class="lang-bash prettyprint-override"><code>kubectl get nodes --output name
</code></pre>
