In case you want to delete the Kafka operator from your cluster, note that because of dependencies between the various components, they must be deleted in specific order.
CAUTION:It’s important to delete the kafka-operator deployment as the last step.
- Delete the KafkaCluster custom resources that represent the Kafka cluster and Cruise Control.
- Wait until kafka-operator deletes all resources. Note that KafkaCluster, KafkaTopic and KafkaUser custom resources are protected with kubernetes finalizers, so those won’t be actually deleted from Kubernetes until the kafka-operator removes those finalizers. After the kafka-operator has finished cleaning up everything, it removes the finalizers. In case you delete the kafka-operator deployment before it cleans up everything you need to remove the finalizers manually.
- Delete the kafka-operator deployment.