replace manual Kafka StatefulSet with Strimzi operator CR

Remove hand-rolled KRaft StatefulSet that kept failing (mount conflicts,
advertised.listeners issues). Replace with a single Strimzi Kafka CR.

Strimzi handles:
- KRaft setup, storage, scaling
- Broker config & advertised listeners (auto-resolved)
- Topic Operator for proper topic lifecycle
- Bootstrap service at trading-kafka-kafka-bootstrap.customer1.svc.cluster.local:9092

Requires Strimzi 1.0.0 operator installed in the cluster first:
  kubectl apply -f https://strimzi.io/install/latest?namespace=customer1 -n customer1
This commit is contained in:
Hermes Agent 2026-05-26 00:37:36 +00:00
commit d012cac7f4
5 changed files with 43 additions and 133 deletions

View file

@ -9,5 +9,5 @@ data:
DB_NAME: "trading_data"
REDIS_HOST: "trading-redis.customer1.svc.cluster.local"
REDIS_PORT: "6379"
KAFKA_BOOTSTRAP_SERVERS: "trading-kafka.customer1.svc.cluster.local:9092"
KAFKA_BOOTSTRAP_SERVERS: "trading-kafka-kafka-bootstrap.customer1.svc.cluster.local:9092"
LOG_LEVEL: "info"

View file

@ -9,5 +9,5 @@ data:
EXECUTE_DB_NAME: "trading_data"
EXECUTE_REDIS_HOST: "trading-redis.customer1.svc.cluster.local"
EXECUTE_REDIS_PORT: "6379"
KAFKA_BOOTSTRAP_SERVERS: "trading-kafka.customer1.svc.cluster.local:9092"
KAFKA_BOOTSTRAP_SERVERS: "trading-kafka-kafka-bootstrap.customer1.svc.cluster.local:9092"
EXECUTE_LOG_LEVEL: "info"