<p>What is the physical representation of a namespace in cluster (I am using AWS) is it an EC2 server?</p>

<p>Can someone help me understand by giving a metaphor of what is the physical representation of:</p>

<ol>
<li>Cluster</li>
<li>Namespace</li>
<li>Pods</li>
<li>Containers</li>
</ol>

Vishrant
<p>Let's think of <code>namespace</code> as linux file system and ignore the fact of mounted directories for the sake of this question:</p>

<pre><code>/srv =&gt; namespace-1
/var =&gt; namespace-2
/mnt =&gt; namespace-3
/bin =&gt; namespace-4
</code></pre>

<ul>
<li>All these 4 directories belongs to same <code>/</code></li>
<li>Inside a directory, you can have different type of files</li>
<li>If you do <code>ls /srv</code> you won't see files in <code>/var</code></li>
<li>Different users can have different type of permissions on each directory</li>
</ul>

<p>Now let's apply above 4 points in from the view of k8s namespace</p>

<ul>
<li>All these 4 <code>namespaces</code> belongs to same kubernetes cluster</li>
<li>Inside a <code>namespace</code>, you can have different type of kubernetes objects</li>
<li>If you do <code>kubectl get deployments</code> from <code>namespace-1</code>,  you won't see deployments in <code>namespace-2</code></li>
<li>Different <code>users</code> can have different type of authorization on each <code>namespaces</code></li>
</ul>
