fix: network policy Kafka selector app -> strimzi labels
Data-service pods use NetworkPolicy egress selector app: trading-kafka but Strimzi Kafka pods are labeled strimzi.io/name=trading-kafka. This silently blocked all Kafka traffic causing NoBrokersAvailable.
This commit is contained in:
parent
6447f92157
commit
bb170365cc
1 changed files with 10 additions and 2 deletions
|
|
@ -99,11 +99,19 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 6379
|
- port: 6379
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
# Allow Kafka access
|
# Allow Kafka access (Strimzi labels)
|
||||||
- to:
|
- to:
|
||||||
- podSelector:
|
- podSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: trading-kafka
|
strimzi.io/name: trading-kafka
|
||||||
|
ports:
|
||||||
|
- port: 9092
|
||||||
|
protocol: TCP
|
||||||
|
# Allow Kafka bootstrap service (fallback)
|
||||||
|
- to:
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
strimzi.io/cluster: trading-kafka
|
||||||
ports:
|
ports:
|
||||||
- port: 9092
|
- port: 9092
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue