-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
606c64f
commit a86298f
Showing
4 changed files
with
93 additions
and
0 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
6 changes: 6 additions & 0 deletions
6
test_outputs/connlist/np_test_with_empty_port_range_connlist_output.txt
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,6 @@ | ||
0.0.0.0-255.255.255.255 => ns1/pod1[Deployment] : All Connections | ||
0.0.0.0-255.255.255.255 => ns2/pod1[Deployment] : All Connections | ||
ns1/pod1[Deployment] => 0.0.0.0-255.255.255.255 : UDP 3535 | ||
ns1/pod1[Deployment] => ns2/pod1[Deployment] : UDP 3535 | ||
ns2/pod1[Deployment] => 0.0.0.0-255.255.255.255 : All Connections | ||
ns2/pod1[Deployment] => ns1/pod1[Deployment] : All Connections |
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,16 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: egress-empty-port-range | ||
namespace: ns1 | ||
spec: | ||
podSelector: {} | ||
policyTypes: | ||
- Egress | ||
egress: | ||
- ports: | ||
- port: 3535 | ||
protocol: UDP | ||
- port: 10 | ||
endPort: 1 | ||
protocol: TCP |
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,67 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: ns1 | ||
spec: {} | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: ns2 | ||
spec: {} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pod1 | ||
namespace: ns1 | ||
labels: | ||
app: a-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: a-app | ||
template: | ||
metadata: | ||
labels: | ||
app: a-app | ||
spec: | ||
containers: | ||
- name: ns1 | ||
image: quay.io/shfa/ns1:latest | ||
ports: | ||
- containerPort: 80 | ||
- containerPort: 81 | ||
- containerPort: 80 | ||
protocol: UDP | ||
- containerPort: 81 | ||
protocol: UDP | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pod1 | ||
namespace: ns2 | ||
labels: | ||
app: a-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: a-app | ||
template: | ||
metadata: | ||
labels: | ||
app: a-app | ||
spec: | ||
containers: | ||
- name: ns2 | ||
image: quay.io/shfa/ns2:latest | ||
ports: | ||
- containerPort: 80 | ||
- containerPort: 81 | ||
- containerPort: 80 | ||
protocol: UDP | ||
- containerPort: 81 | ||
protocol: UDP | ||
--- |