Chris G.
Chris G.

Reputation: 25934

Move pods between namespace

Not a big deal, but just wondering what is best practice for moving pods from one namespace to another?

Do you just kubectl delete and kubectl apply?

Upvotes: 15

Views: 17684

Answers (1)

Shashank V
Shashank V

Reputation: 11183

You cannot "move" a resource to another namespace. There might be resource with same name in the other namespace already.

So yes, you need to delete the existing pod and recreate it in the other namespace.

Upvotes: 30

Related Questions