We have confluent kafka 4.0.0 used in our env as a microservice, we would like to get it upgraded to 5.5.1 version similarly the zookeeper and kafka Rest. We are running kafka broker and zookeeper as statefulsets and the kafka rest as deployment.
What is the best way of doing this upgrade with rollback procedures on?
- Upgrading the image tag to the version 5.5.1 on the running sts and deployments and change all the configurations under the same namespace.
or
- Creating all the kafka components in a new namespace with upgraded version and new configuration on it and simply route the traffic here by changing the ingress load balancer.
What would be the best way of upgrading out of these methods? also let me know if there is any other way of doing it.
We're doing the 2nd way:
This is much safer than upgrading live as it lets you verify/debug on all the stages.