Reset / Rollback Kubernetes to just create state?

10/14/2019

i am trying to setup a complete GitLab Routine to setup my Kubernetes Cluster with all installations and configurations automatically incl. decommissioning at the end.

However the Creation and Decommissioning Progress is one of the most time consuming because i am basically waiting for the provisioning till i can execute further commands.

as i have some times troubles in the bases of the Kubernetes Setup, i currently decomission my cluster and create a new one. But this is pretty un-economical and time consuming.

Question: Is there a command or a series of commands to completely reset a Kubernetes to his state after creation ?

-- Bliv_Dev
kubernetes
reset

1 Answer

10/15/2019

The closest is probably to do all your work in a new namespace and then delete that namespace when you are done. That automatically deletes all objects inside it.

-- coderanger
Source: StackOverflow