I am playing with Kubernetes really for the first time, and have a brand new (empty) GKE cluster up on GCP.
I am going to play around with YAML Kustomize files and try to get a few services deployed there, but what I'm really looking for is a command (or set of kubectl
/gcloud
commands) to restore the GKE cluster to a totally "new" slate. This is because it's probably going to take several dozen (or more!) attempts at configuring and tweaking my YAML files until I get the configs and behavior down just right, and each time I mess up I want to start over with a completely "clean"/new GKE cluster. For reasons outside the scope of this question, deleting and recreating the GKE cluster really isn't a viable option.
My Kustomize files and deploment scripts will create Kubernetes operators, namespaces, persistent volumes (and claims), various services and all sorts of other resources. But I need to be able to drop/delete them all and bring the cluster back to the brand new state.
Is this possible, and if so, whats the process/command(s) involved? FWIW I have cluster admin permissions.