Prerequisites
You have deployed a Pulsar cluster using the Pulsar Operators.Scale Pulsar brokers
If you use the default broker CR, you should have 2 broker replicas running in thepulsar
namespace. This example scales the number of Pods from 2 to 5.
-
View the existing broker CR.
You should see the following output:
-
Run the following command to scale brokers.
-
View the newly-created Pods.
You should see the following output:
-
Alternatively, you can create a broker YAML file with the following configuration and use the
kubectl apply -f
command to apply the file.
Scale Pulsar proxies
If you use the default proxy CR, you should have 2 proxy replicas running in thepulsar
namespace. This example scales the number of Pods from 2 to 5.
-
View the existing proxy CR.
You should see the following output:
-
Run the following command to scale Pulsar proxies.
-
View the newly created Pods.
You should see the following output:
-
Alternatively, you can create a proxy YAML file with the following configuration and use the
kubectl apply -f
command to apply the file.
Scale bookies
If you use the default BookKeeper CR, you should have 3 bookie replicas running in thepulsar
namespace. This example scales the number of bookie Pods from 3 to 7.
-
View the existing BookKeeper CR.
You should see the following output:
-
Run the following command to scale bookies.
-
View the newly-created Pods.
You should see the following output:
-
Alternatively, you can create a BookKeeper YAML file with the following configuration and use the
kubectl apply -f
command to apply the file.
Scale ZooKeeper
If you use the default ZooKeeper CR, you should have 3 ZooKeeper replicas running in thepulsar
namespace. This example scales the number of Pods from 3 to 5.
-
View the existing ZooKeeper CR.
You should see the following output:
-
Run the following command to scale ZooKeeper.
-
View the newly-created Pods.
You should see the following output:
-
Alternatively, you can create a ZooKeeper YAML file with the following configuration and use the
kubectl apply -f
command to apply the file.