Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(connectivity): add dns rules and change protocol to ANY #1402

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions connectivity/manifests/allow-all-except-world.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ spec:
# This change prevents failing the connectivity
# test for such environments.
- toPorts:
- ports:
- port: "53"
protocol: UDP
- ports:
- port: "53"
protocol: UDP
- port: "53"
protocol: TCP
toEntities:
- world
ingress:
Expand Down
4 changes: 3 additions & 1 deletion connectivity/manifests/client-egress-l7-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ specs:
- toPorts:
- ports:
- port: "53"
protocol: ANY
protocol: UDP
- port: "53"
protocol: TCP
rules:
dns:
- matchPattern: "*"
Expand Down
9 changes: 8 additions & 1 deletion connectivity/manifests/client-egress-only-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ spec:
- toPorts:
- ports:
- port: "53"
protocol: ANY
protocol: UDP
- port: "53"
protocol: TCP
rules:
dns:
- matchPattern: "*"
Expand All @@ -26,5 +28,10 @@ spec:
- ports:
- port: "53"
protocol: UDP
- port: "53"
protocol: TCP
rules:
dns:
- matchPattern: "*"
toEntities:
- world
6 changes: 5 additions & 1 deletion connectivity/manifests/client-egress-to-echo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ spec:
- toPorts:
- ports:
- port: "53"
protocol: ANY
protocol: UDP
- port: "53"
protocol: TCP
toEndpoints:
- matchExpressions:
- { key: 'k8s-app', operator: In, values: [ "kube-dns", "coredns", "node-local-dns", "nodelocaldns" ] }
Expand All @@ -31,5 +33,7 @@ spec:
- ports:
- port: "53"
protocol: UDP
- port: "53"
protocol: TCP
toEntities:
- world
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ spec:
toPorts:
- ports:
- port: "53"
protocol: ANY
protocol: UDP
- port: "53"
protocol: TCP
# When node-local-dns is deployed with local IP,
# Cilium labels its ip as world.
# This change prevents failing the connectivity
Expand All @@ -29,5 +31,7 @@ spec:
- ports:
- port: "53"
protocol: UDP
- port: "53"
protocol: TCP
toEntities:
- world
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ spec:
- toPorts:
- ports:
- port: "53"
protocol: ANY
protocol: UDP
- port: "53"
protocol: TCP
rules:
dns:
- matchPattern: "*"
Expand All @@ -36,5 +38,10 @@ spec:
- ports:
- port: "53"
protocol: UDP
- port: "53"
protocol: TCP
rules:
dns:
- matchPattern: "*"
toEntities:
- world
Loading