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
13 lines
403 B
YAML
13 lines
403 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: trading-data-service-config
|
|
namespace: customer1
|
|
data:
|
|
DB_HOST: "siriusdevops-pgdb-rw.customer1.svc.cluster.local"
|
|
DB_PORT: "5432"
|
|
DB_NAME: "trading_data"
|
|
REDIS_HOST: "trading-redis.customer1.svc.cluster.local"
|
|
REDIS_PORT: "6379"
|
|
KAFKA_BOOTSTRAP_SERVERS: "trading-kafka-kafka-bootstrap.customer1.svc.cluster.local:9092"
|
|
LOG_LEVEL: "info"
|