-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Add new Kafka Role to the docs
This change fixes the `Policy` docs to reflect the new `Kafka Role` Fixes: #3118 Signed-off-by: Manali Bhutiyani <manali@covalent.io>
- Loading branch information
Manali Bhutiyani
committed
Mar 19, 2018
1 parent
cfe4b64
commit 796ad0e
Showing
3 changed files
with
79 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[{ | ||
"labels": [{"key": "name", "value": "rule1"}], | ||
"endpointSelector": {"matchLabels": {"app": "kafka"}}, | ||
"ingress": [{ | ||
"fromEndpoints": [ | ||
{"matchLabels": {"app": "empire-hq"}} | ||
], | ||
"toPorts": [{ | ||
"ports": [ | ||
{"port": "9092", "protocol": "TCP"} | ||
], | ||
"rules": { | ||
"kafka": [ | ||
{"Role": "produce","topic": "deathstar-plans"}, | ||
{"Role": "produce", "topic": "empire-announce"} | ||
] | ||
} | ||
}] | ||
}] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: "cilium.io/v2" | ||
kind: CiliumNetworkPolicy | ||
description: "enable empire-hq to produce to empire-announce and deathstar-plans" | ||
metadata: | ||
name: "rule1" | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
app: kafka | ||
ingress: | ||
- fromEndpoints: | ||
- matchLabels: | ||
app: empire-hq | ||
toPorts: | ||
- ports: | ||
- port: "9092" | ||
protocol: TCP | ||
rules: | ||
kafka: | ||
- Role: "produce" | ||
topic: "deathstar-plans" | ||
- Role: "produce" | ||
topic: "empire-announce" |