Replies: 1 comment 3 replies
-
You cannot scale Kafka to 0 the way you describe it because it holds the data. What you seem to want is to stop / shutdown the cluster. To do that, you can:
And to start the cluster again, you can just unpause the Kafka CR again. There are some previous discussions about this that might contain some more details. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The need is to (usually temporarily) stop the kafka pods, while keeping the data in their PVs untouched. For example to safely backup the PVs, or to save resources when you don't actually use the cluster.
Without KRaft, you can simply set
spec.kafka.replicas
to 0 in the Kafka k8s objectWith KRaft, the actual number of kafka pods is in the NodePool.
But if I set
spec.replicas
to 0 in the KafkaNodePool k8s object, the operator does not stop the pods, and throws this exception:How could I do that properly?
A workaround would probably be to scale down the strimzi operator to zero, then delete the pods, but it would stop reconciliation for all the k8s cluster
Beta Was this translation helpful? Give feedback.
All reactions