- QuickStart guides
Uninstall the Pulsar Operators
You can uninstall the Pulsar Operators when you no longer need it. This document demonstrates how to uninstall the Pulsar Operators.
Prerequisites
- You have installed the Pulsar Operators using the Helm chart or OLM.
- Install Helm (v3.0.2 or above).
Uninstall Pulsar
Note
Skip this section if Pulsar is not installed.
If you already have deployed Pulsar with the Pulsar Operators, you need to uninstall Pulsar first.
Run the following command to uninstall Pulsar if you installed it with proxies.
kubectl delete -f https://raw.githubusercontent.com/streamnative/charts/master/examples/pulsar-operators/proxy.yaml
Run the following command to uninstall Pulsar if you installed it without proxies.
kubectl delete -f https://raw.githubusercontent.com/streamnative/charts/master/examples/pulsar-operators/quick-start.yaml
Uninstall the Pulsar Operators deployed using the Helm chart
Run the following command to uninstall the Pulsar Operators. You can use the
helm list -n <k8s-namespace>
command to find the release you want to delete.helm uninstall <release-name> -n <k8s-namespace>
Delete the Custom Resource Definitions (CRDs) of Pulsar. Helm does not uninstall CRDs when you run the
helm delete
command. Therefore, you need to manually remove them.kubectl delete crd pulsarbrokers.pulsar.streamnative.io pulsarproxies.pulsar.streamnative.io bookkeeperclusters.bookkeeper.streamnative.io zookeeperclusters.zookeeper.streamnative.io
Uninstall the Pulsar Operators deployed using the OLM
Delete the Subscriptions created by the OLM. Subscriptions are used to subscribe to the latest version of an operator. By deleting the Subscriptions associated with the Pulsar Operators, you let the OLM know that you no longer want new versions of the Pulsar Operators to be installed.
kubectl delete -f https://raw.githubusercontent.com/streamnative/charts/master/examples/pulsar-operators/olm-subscription.yaml
Delete the ClusterServiceVersions (CSVs) of the Pulsar Operators. You can run the
kubectl get csv -n operators
command to view the versions.kubectl delete csv pulsar-operator.<version> bookkeeper-operator.<version> zookeeper-operator.<version> -n operators
Delete the CRDs of Pulsar.
kubectl delete crd pulsarbrokers.pulsar.streamnative.io pulsarproxies.pulsar.streamnative.io bookkeeperclusters.bookkeeper.streamnative.io zookeeperclusters.zookeeper.streamnative.io