kubectl scale statefulsets brokers-broker --replicas=5 -n pulsar
command to scale the replicas of Pulsar brokers from the default value 2 to 5, the StatefulSet controller first adds 3 new Pods but it deletes them immediately. This is because the Pulsar Operators detect the difference between the configured replicas (2) in the Pulsar broker CR and the replicas (5) that are actually running. For the Pulsar Operators, this is not the desired state so they force the StatefulSet controller to delete the newly-created 3 Pods.
To see how the Pulsar Operators work on the broker StatefulSet, run the following command: