Skip to main content
This document demonstrates how to install the Pulsar Operators using the Operator Lifecycle Manager (OLM), which is a part of the Operator Framework. The OLM provides a declarative way to install, manage, and upgrade operators on a Kubernetes cluster. StreamNative develops and maintains the Pulsar Operators’ packages on the OperatorHub.

Prerequisites

  • Prepare a Kubernetes cluster (v1.24 or above)
  • Install kubectl (v1.24 or above), compatible with your cluster (+/- 1 minor release from your cluster).

Install the Pulsar Operators

  1. Install the OLM. The script automatically creates the olm namespace and the operators namespace.
  2. Install the Custom Resource Definitions (CRDs) and custom controllers for Pulsar, BookKeeper, and ZooKeeper. The controllers are deployed in the operators namespace by default.
  3. Verify that the Pulsar Operators are installed successfully.
When you deploy the Pulsar Operators, the OLM first runs a Job in the olm namespace for each operator. You need to wait for the Jobs to finish before you can see the output.
You should see the following output. The three custom controllers are running as Deployments, each having one Pod replica by default. The OLM exposes them internally through the ClusterIP service type, which means that they are reachable within the cluster.
  1. View the created CRDs. These CRDs can be used to create CRs for Pulsar.
    You should see the following output:
  2. View the ClusterServiceVersion (CSV) of these operators.
    You should see the following output:
    With the Pulsar Operators installed, you can use the controllers and the CRDs to deploy a Pulsar cluster.