<p>I am created a pod in default namespace in kubernetes,but now I want to move pod to dabai-fat namespace I current created.I am trying to modify the yaml file but it give error:</p>

<pre><code>the namespace of the object (dabai-fat) does not match the namespace on the request (default)
</code></pre>

<p>what should I do to make it work,should I delete the old pod and created a new pod?</p>

Dolphin
<p>Yes, you should delete the old pod and recreate the new pod in the desired namespace. </p>

<p>You cannot <strong>move</strong> kubernetes resources between namespaces. Combination of <strong>name</strong> and <strong>namespace</strong> identifies a resource uniquely. So you cannot move the resource to a different namespace as another resource might already be present in the other namespace with same name. </p>
