Tran B. V. Son
Tran B. V. Son

Reputation: 839

Recover deleted namespace Kubernetes

I run kubectl delete with --all flag. This command deleted all namespace on my cluster. (I couldn't see any namespace on K8S Dashboard) So How can I recover all these deleted namespace ?

And is it possible to restore data on namespance ?

➜ kubectl delete ns --all
warning: deleting cluster-scoped resources, not scoped to the provided namespace
namespace "1xx" deleted
namespace "2xx" deleted
namespace "3xx" deleted
namespace "4xx" deleted
namespace "5xx" deleted
namespace "6xx" deleted
namespace "7xx" deleted

Upvotes: 0

Views: 3183

Answers (1)

coderanger
coderanger

Reputation: 54191

No. Your cluster is probably no longer viable and will need to be restored from backup or rebuilt.

Upvotes: 2

Related Questions