<p>I would like to see all resources in a namespace.</p>
<p>Doing <code>kubectl get all</code> will, despite of the name, not list things like services and ingresses.</p>
<p>If I know the the type I can explicitly ask for that particular type, but it seems there is also no command for listing all possible types. (Especially <code>kubectl get</code> does for example not list custom types).</p>
<p>How to show all resources before for example deleting that namespace?</p>

<p>Based on <a href="https://github.com/kubernetes/kubectl/issues/151#issuecomment-402003022" rel="noreferrer">this comment</a> , the supported way to list all resources is to iterate through all the api versions listed by <code>kubectl api-resources</code>:</p>
<blockquote>
<p>kubectl api-resources enumerates the resource types available in your cluster.</p>
<p>this means you can combine it with kubectl get to actually list every instance of every resource type in a namespace:</p>
</blockquote>
<pre><code>kubectl api-resources --verbs=list --namespaced -o name \
  | xargs -n 1 kubectl get --show-kind --ignore-not-found -l &lt;label&gt;=&lt;value&gt; -n &lt;namespace&gt;
</code></pre>
