Running on Kubernetes with Strimzi
Kafka on Kubernetes with the Strimzi operator: the same services deployed to minikube, then monitoring, Cruise Control, MirrorMaker 2 and Kafka Connect as declared resources.
Strimzi and KRaft
A Kafka broker on Kubernetes needs a stable node id, its own volume, addresses that resolve and a controller quorum. Strimzi runs Kafka from a Kafka resource and two node pools, one for controllers and one for brokers, and the order and notification services run against it with only their addresses changed.
Unidirectional Topic Operator
A broker that creates topics on first use turns a typo into a new topic and leaves partitions and retention to whatever the defaults were. Every topic of the event catalog is declared as a KafkaTopic, auto-creation is off, and the Topic Operator reconciles in one direction only: from the resource to Kafka.
Server-side apply
Two tools write the same Deployment and a client-side apply silently keeps the last one. Server-side apply records an owner for every field, refuses a second writer until it forces the change, and installs manifests whose CRDs are too large for an annotation. Strimzi applies its own resources the same way, so a foreign annotation stays and an owned field returns.
Security context and pod security
A cluster admits any pod unless a rule says otherwise. Labelling a namespace with the restricted Pod Security Standard makes the API server refuse pods that can escalate privileges or run as root. The applications carry the four required fields, Strimzi gets the restricted pod security provider, CloudNativePG is admitted as published, and otel-lgtm stays in a namespace of its own.
Monitoring Strimzi
A Kafka cluster that an operator runs hides its JVMs behind resources. Brokers and controllers report through the Strimzi Metrics Reporter, the operator reports its own reconciliations, kube-state-metrics turns the status of each resource into a series, and one collector feeds them all to the Prometheus that already holds the application telemetry.
Cruise Control: rebalancing
Kafka places a partition when it is created and never moves it, so a broker added to a busy cluster stays empty and a broker that holds replicas cannot be removed. Cruise Control computes a plan from the load, a KafkaRebalance holds it until it is approved, and autoRebalance lets the operator ask and approve when a node pool grows or shrinks.
MirrorMaker 2
A second cluster with the same topics is of no use to a consumer that does not know where to resume. MirrorMaker 2 copies the topics under their own names and translates each consumer group's committed offsets into the second cluster, so a consumer fails over by changing its bootstrap address.
Debezium and Connect on Strimzi
On a plain Docker setup a connector is a JSON file somebody PUTs to a REST API, its plugin is whatever the running image holds and an offset change is a curl. On Strimzi the Connect image is built from a resource, each connector is a resource and an offset operation is an annotation on it.