Apache Pulsar Helm Chart

This is the official supported Helm chart to install Apache Pulsar on a cloud-native environment. It was enhanced based on StreamNative’s Helm Chart.

Introduction

The Apache Pulsar Helm chart is one of the most convenient ways to operate Pulsar on Kubernetes. This Pulsar Helm chart contains all the required components to get started and can scale to large deployments.

This chart includes all the components for a complete experience, but each part can be configured to be installed separately.

  • Pulsar core components:
    • ZooKeeper
    • Bookies
    • Brokers
    • Function workers
    • Proxies
  • Control Center:
    • Pulsar Manager
    • Prometheus
    • Grafana
    • Alert Manager

It includes support for:

  • 安全
  • 单机模式
    • Non-persistence storage
    • Persistence volume
    • Local persistent volumes
  • 存储过程
    • Kubernetes Runtime
    • Process Runtime
    • Thread Runtime
  • Operations
    • Independent image versions for all components, enabling controlled upgrades

Pulsar Helm chart quick start

To get up and run with these charts as fast as possible, in a non-production use case, we provide a quick start guide for Proof of Concept (PoC) deployments.

This guide walks the user through deploying these charts with default values and features, but does not meet production ready requirements. To deploy these charts into production under sustained load, follow the complete Installation Guide.

故障排除

We have done our best to make these charts as seamless as possible. Occasionally, troubles do go outside of our control. We have collected tips and tricks for troubleshooting common issues. Please check them first before raising an issue, and feel free to add to them by raising a Pull Request.

安装

The Apache Pulsar Helm chart contains all required dependencies.

If you deploy a PoC for testing, we strongly suggest you follow our Quick Start Guide for your first iteration.

  1. 准备工作
  2. 部署

Upgrading

Once the Pulsar Helm chart is installed, use the helm upgrade to complete configuration changes and chart updates.

  1. git clone https://github.com/apache/pulsar
  2. cd deployment/kubernetes/helm
  3. helm get values <pulsar-release-name> > pulsar.yaml
  4. helm upgrade <pulsar-release-name> pulsar -f pulsar.yaml

For more detailed information, see Upgrading.

Uninstallation

To uninstall the Pulsar Helm chart, run the following command:

  1. helm delete <pulsar-release-name>

For the purposes of continuity, these charts have some Kubernetes objects that cannot be removed when performing helm delete. It is recommended to conciously remove these items, as they affect re-deployment.

  • PVCs for stateful data: consciously remove these items.
    • ZooKeeper: This is your metadata.
    • BookKeeper: This is your data.
    • Prometheus: This is your metrics data, which can be safely removed.
  • Secrets: if the secrets are generated by the prepare release script, they contain secret keys and tokens. You can use the cleanup release script to remove these secrets and tokens as needed.