<p>I was trying to modify my ingress as my ingress controller and ingress service are runnign in nginx-ingress name space.</p>

<p>I tried to to use: <code>kubectl edit ing lhingress</code> where ingress name is lhingress. It opens up an editor but whne i try to modify and then save it. i get below error.</p>

<pre><code>error: the namespace from the provided object "nginx-ingress" does not match the namespace "default". You must pass '--namespace=nginx-ingress' to perform this operation.
</code></pre>

<p>Could you please suggest me how to point this ingress to different namespace</p>

<p>You cannot change namespace of existing object. You need to create a new resource in the other namespace and delete the old one.</p>
