<p>I am seeking to how to be able to use multiple parameter on kubernetes. For example: </p>

<pre><code>kubectl get pods -n default || kube-system
</code></pre>

<p>(but the results of this query come out only the result of default namespace).</p>

<p>How can I use multiple params?</p>

<p>You can't query for multiple namespaces resources in one command.
As there is explanation why it is not worth to do that on this <a href="https://github.com/kubernetes/kubernetes/issues/52326" rel="nofollow noreferrer">github issue</a></p>

<p>But you can query for multiple resources across one or <code>--all-namespaces</code>. For example got get <code>services</code> and <code>pods</code> for namespace <code>kube-dns</code> and <code>default</code>(this will include workaround as @PEkambaram suggested)</p>

<pre><code>kubectl get svc,pods --all-namespaces |egrep -e 'kube-dns|default'
</code></pre>
