-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connectivity: test accessing NodePort from outside with L7 policy
This test case covers cilium/cilium#21954. A new policy `echo-ingress-l7-policy-from-anywhere` is added to allow HTTP GET / on echo pods from outside. Use `cilium connectivity test --test north-south-loadbalancing --datapath` to run this test. Signed-off-by: Zhichuan Liang <[email protected]>
- Loading branch information
1 parent
cbbecbb
commit 4ac1a48
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
connectivity/manifests/echo-ingress-l7-http-from-anywhere.yaml
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,19 @@ | ||
--- | ||
apiVersion: "cilium.io/v2" | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: "echo-ingress-l7-http-from-anywhere" | ||
spec: | ||
description: "Allow all to GET / on echo" | ||
endpointSelector: | ||
matchLabels: | ||
kind: echo | ||
ingress: | ||
- toPorts: | ||
- ports: | ||
- port: "8080" | ||
protocol: TCP | ||
rules: | ||
http: | ||
- method: "GET" | ||
path: "/$" |
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