Merge pull request #187 from sirius0xdev/fix/kafka-netpol-label
fix: network policy Kafka selector app → strimzi labels
This commit is contained in:
commit
267356de97
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