I have started at a new company, and they only have two environments, one is a test environment and the other is a Prod environment. In the test environment, lots of development teams are using this single instance of Kafka.
I want to upgrade Strimzi, which manages Kafka, and eventually I want to upgrade Kafka too. However, I want to test my script first, and I also want a way to restore the current state incase I break anything.
I have taken a copy of all the yaml in the namespace, but not sure if just re-applying this would restore anything I break. I was hoping there was a way to just clone the entire setup?
Also, I want to create a new test environment, for unit testing, a bit of a route to live, but not sure how to do this.
I have tried to copy and save all the YAML and deploy to a local Docker container, but this doesnt work. I havent tried anything in regards to the upgrade failing. Upgrading on the local Docker container is working fine
kubectl get strimzi -o yaml
, clean them (the.status
sections, some of the metadata information etc.) and use them on a different Kubernetes cluster.