title: How to switch namespace in kubernetes
body: <p>Say, I have two namespaces k8s-app1 and k8s-app2</p>
  
  <p>I can list all pods from specific namespace using the below command</p>
  
  <pre><code>kubectl get pods -n &lt;namespace&gt;
  </code></pre>
  
  <p>We need to append namespace to all commands to list objects from the respective namespaces. Is there a way to set specific namespace and list objects without including the namespace explicitly?</p>