Skip to content

Commit 435a711

Browse files
authored
Merge pull request #35311 from jboxman/bz-1988324
BZ1988324: Add note that egress firewall blocks API endpoints
2 parents 0fdecae + 01574ac commit 435a711

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

modules/nw-egressnetworkpolicy-about.adoc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,37 @@ ifdef::ovn[]
3737
- A protocol that is one of the following protocols: TCP, UDP, and SCTP
3838
endif::ovn[]
3939

40+
[IMPORTANT]
41+
====
42+
If your egress firewall includes a deny rule for `0.0.0.0/0`, access to your {product-title} API servers is blocked.
43+
To ensure that pods can continue to access the {product-title} API servers, you must include the IP address range that the API servers listen on in your egress firewall rules, as in the following example:
44+
45+
[source,yaml]
46+
----
47+
apiVersion: k8s.ovn.org/v1
48+
kind: EgressFirewall
49+
metadata:
50+
name: default
51+
namespace: <namespace> <1>
52+
spec:
53+
egress:
54+
- to:
55+
cidrSelector: <api_server_address_range> <2>
56+
type: Allow
57+
# ...
58+
- deny:
59+
cidrSelector: 0.0.0.0/0 <3>
60+
type: Deny
61+
----
62+
<1> The namespace for the egress firewall.
63+
<2> The IP address range that includes your {product-title} API servers.
64+
<3> A global deny rule prevents access to the {product-title} API servers.
65+
66+
To find the IP address for your API servers, run `oc get ep kubernetes -n default`.
67+
68+
For more information, see link:https://bugzilla.redhat.com/show_bug.cgi?id=1988324[BZ#1988324].
69+
====
70+
4071
ifdef::openshift-sdn[]
4172
[IMPORTANT]
4273
====
@@ -58,6 +89,9 @@ An egress firewall has the following limitations:
5889

5990
* No project can have more than one {kind} object.
6091

92+
ifdef::ovn[]
93+
* A maximum of one {kind} object with a maximum of 8,000 rules can be defined per project.
94+
endif::ovn[]
6195
ifdef::openshift-sdn[]
6296
* A maximum of one {kind} object with a maximum of 1,000 rules can be defined per project.
6397

0 commit comments

Comments
 (0)