Here’s a guide to deploying Apache Pulsar with all the official connectors and offloaders using the apachepulsar/pulsar-all
image.
Steps to Deploy Apache Pulsar on Akash Network
-
Prepare Environment
- Install Akash CLI or use an existing deployment manager for the Akash network.
- Ensure you have the necessary funds in your Akash wallet to deploy.
-
Write the Deployment YAML
Below is the deploy.yaml
configuration:
Explanation of the Deployment Configuration
- Image: Uses
apachepulsar/pulsar-all:latest
, which includes all official connectors and offloaders. - Ports:
- 6650: The Pulsar broker port for client connections.
- 8080: The Pulsar Admin REST API for managing the Pulsar cluster.
- Environment Variables:
- Configures JVM memory and standalone Pulsar setup.
- Health Check:
- Ensures that the Pulsar Admin API is accessible to verify the service is running correctly.
- Resource Allocation:
- Assigns 2 CPU cores, 4GB memory, and 20GB storage to the service.
Deployment Instructions
- Save the YAML file as
deploy.yaml
. - Deploy it using the Akash CLI:
- Monitor the deployment:
Verifying the Deployment
-
Access the Pulsar Admin API:
Replace
<deployment_url>
with the URL provided by Akash for your deployment. -
Connect a Pulsar client to the broker:
This setup deploys Apache Pulsar with all connectors and offloaders, ready for production use.