Skip to content

Commit 1c84608

Browse files
authored
Merge pull request #68467 from JoeAldinger/OCPBUGS-23460
OCPBUGS-234060: clarifies example labels
2 parents d745f54 + 9af3f6e commit 1c84608

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

modules/nw-infw-operator-rules-object.adoc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ spec:
8383
- eth0
8484
nodeSelector:
8585
matchLabels:
86-
<do_node_ingress_firewall>: 'true'
86+
<ingress_firewall_label_name>: <label_value> <1>
8787
ingress:
8888
- sourceCIDRs:
8989
- 172.16.0.0/12
@@ -110,6 +110,7 @@ spec:
110110
icmpType: 128 #ICMPV6 Echo request
111111
action: Deny
112112
----
113+
<1> A <label_name> and a <label_value> must exist on the node and must match the `nodeselector` label and value applied to the nodes you want the `ingressfirewallconfig` CR to run on. The <label_value> can be `true` or `false`. By using `nodeSelector` labels, you can target separate groups of nodes to apply different rules to using the `ingressfirewallconfig` CR.
113114

114115
[discrete]
115116
[id="nw-ingress-node-firewall-zero-trust-example-cr_{context}"]
@@ -136,10 +137,10 @@ spec:
136137
- eth1 <1>
137138
nodeSelector:
138139
matchLabels:
139-
<do_node_ingress_firewall>: 'true'
140+
<ingress_firewall_label_name>: <label_value> <2>
140141
ingress:
141142
- sourceCIDRs:
142-
- 0.0.0.0/0 <2>
143+
- 0.0.0.0/0 <3>
143144
rules:
144145
- order: 10
145146
protocolConfig:
@@ -148,8 +149,9 @@ spec:
148149
ports: 22
149150
action: Allow
150151
- order: 20
151-
action: Deny <3>
152+
action: Deny <4>
152153
----
153-
<1> Multi-interface cluster
154-
<2> `0.0.0.0/0` set to match any CIDR
155-
<3> `action` set to `deny`
154+
<1> Network-interface cluster
155+
<2> The <label_name> and <label_value> needs to match the `nodeSelector` label and value applied to the specific nodes with which you wish to apply the `ingressfirewallconfig` CR.
156+
<3> `0.0.0.0/0` set to match any CIDR
157+
<4> `action` set to `Deny`

0 commit comments

Comments
 (0)