Kafka service scaling
kubectl create job --from=cronjob/admin-kafka-scaler -n ice-arcus kafka-scaler
The cronjob/admin-kafka-scaler is already added to the helm chart. When either scaling up or down, the script behaves in the same way:

Checks the current active nodes in the Kubernetes cluster and then makes an appropriate number of Kafka brokers.

Distributes Kafka topics across the brokers. and creates replicas of every topic on every broker.

Execution takes about 6-7 minutes as the brokers are brought up or terminated, depending on is scaling up or down.