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 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 install separately.

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

It includes support for:

  • 安全
    • Automatically provisioned TLS certs, using Jetstack‘s cert-manager
    • TLS Encryption
      • Proxy
      • Broker
      • Toolset
      • Bookie
      • ZooKeeper
    • Authentication
      • JWT
    • Authorization
  • Storage
    • Non-persistence storage
    • Persistence Volume
    • Local Persistent Volumes
  • Functions
    • Kubernetes Runtime
    • Process Runtime
    • Thread Runtime
  • Operations
    • Independent Image Versions for all components, enabling controlled upgrades

Pulsar Helm chart quick start

For those looking to get up and running 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 & features, but does not meet production ready requirements. If you wish to deploy these charts into production under sustained load, you should follow the complete Installation Guide.

故障排除

We’ve done our best to make these charts as seamless as possible, occasionally troubles do surface outside of our control. We’ve collected tips and tricks for troubleshooting common issues. Please examine these 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 are just looking to deploy a Proof of Concept for testing, we strongly suggest you follow our Quick Start Guide for your first iteration.

  1. 准备工作
  2. 部署

Upgrading

Once your Pulsar Chart is installed, configuration changes and chart updates should be done using helm upgrade.

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

For more detailed information, see Upgrading.

Uninstall

To uninstall the Pulsar Chart, run the following command:

  1. helm delete <pulsar-release-name>

For the purposes of continuity, these charts have some Kubernetes objects that are not removed when performing helm delete. These items we require you to conciously remove them, as they affect re-deployment should you choose to.

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