You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/references/parameters.adoc
+29-13Lines changed: 29 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,19 @@ See the https://docs.isovalent.com/operations-guide[Isovalent Cilium Enterprise
198
198
199
199
This section allows users to configure the [Cilium EgressGatewayPolicy] feature.
200
200
201
+
[TIP]
202
+
====
203
+
When deploying Cilium OSS, the component will generate `CiliumEgressGatewayPolicy` resources.
204
+
205
+
When deploying Cilium EE, the component will generate `IsovalentEgressGatewayPolicy` resources.
206
+
====
207
+
208
+
[NOTE]
209
+
====
210
+
The current implementation (and therefore examples shown here) has only been tested with Cilium EE.
211
+
Please refer to the https://docs.cilium.io/en/stable/network/egress-gateway/#example-policy[example policy in the upstream documentation] for Cilium OSS.
212
+
====
213
+
201
214
=== `egress_gateway.enabled`
202
215
203
216
[horizontal]
@@ -226,11 +239,14 @@ type:: object
226
239
default:: `{}`
227
240
228
241
This parameter allows users to deploy `CiliumEgressGatewayPolicy` resources.
229
-
Each key-value pair in the parameter is converted to a `CiliumEgressGatewayPolicy` resource.
242
+
When deploying Cilium EE, the parameter will generate `IsovalentEgressGatewayPolicy` resources instead.
243
+
244
+
Each key-value pair in the parameter is converted to a `CiliumEgressGatewayPolicy` (or `IsovalentEgressGatewayPolicy`) resource.
230
245
Entries can be removed by setting the value to `null`.
231
246
232
247
==== Example
233
248
249
+
NOTE: The examples are written for Cilium EE's `IsovalentEgressGatewayPolicy` resources.
234
250
235
251
[source,yaml]
236
252
----
@@ -261,8 +277,8 @@ The component configuration shown above is rendered as follows by the component:
261
277
262
278
[source,yaml]
263
279
----
264
-
apiVersion: cilium.io/v2
265
-
kind: CiliumEgressGatewayPolicy
280
+
apiVersion: isovalent.com/v1
281
+
kind: IsovalentEgressGatewayPolicy
266
282
metadata:
267
283
annotations:
268
284
syn.tools/description: |
@@ -302,9 +318,9 @@ See also the documentation for https://hub.syn.tools/openshift4-nodes/references
302
318
type:: object
303
319
default:: `{}`
304
320
305
-
This parameter allows users to configure `CiliumEgressGatewayPolicy` resources which assign a single egress IP to a namespace according to the design selected in https://kb.vshn.ch/oc4/explanations/decisions/cloudscale-cilium-egressip.html[Floating egress IPs with Cilium on cloudscale].
321
+
This parameter allows users to configure `CiliumEgressGatewayPolicy` (or `IsovalentEgressGatewayPolicy`) resources which assign a single egress IP to a namespace according to the design selected in https://kb.vshn.ch/oc4/explanations/decisions/cloudscale-cilium-egressip.html[Floating egress IPs with Cilium on cloudscale].
306
322
307
-
Each entry in the parameter is intended to describe a group of dummy interfaces that can be used in `CiliumEgressGatewayPolicy` resources.
323
+
Each entry in the parameter is intended to describe a group of dummy interfaces that can be used in `CiliumEgressGatewayPolicy` (or `IsovalentEgressGatewayPolicy`) resources.
308
324
The component expects that each value is an object with fields `egress_range`, `node_selector`, `namespace_egress_ips`, and `shadow_ranges`.
309
325
310
326
NOTE: Field `shadow_ranges` is optional, see the section on <<_shadow_ranges,shadow ranges>> for more details.
@@ -338,7 +354,7 @@ The easiest option to do so is to define a link-local route for `192.0.2.0/25` o
338
354
339
355
==== Policy generation
340
356
341
-
The component will generate one `CiliumEgressGatewayPolicy` for each key-value pair in field `namespace_egress_ips` for each egress range.
357
+
The component will generate one `CiliumEgressGatewayPolicy` (or `IsovalentEgressGatewayPolicy`) for each key-value pair in field `namespace_egress_ips` for each egress range.
342
358
343
359
NOTE: The compilation will abort with an error if the same namespace appears in multiple egress range definitions.
344
360
@@ -387,12 +403,12 @@ egress_ip_ranges:
387
403
infra-bar: 198.51.100.64 - 198.51.100.95
388
404
----
389
405
390
-
The configuration shown above results in the two `CiliumEgressGatewayPolicy` resources shown below.
406
+
The configuration shown above results in the two `IsovalentEgressGatewayPolicy` resources shown below.
391
407
392
408
[source,yaml]
393
409
----
394
-
apiVersion: cilium.io/v2
395
-
kind: CiliumEgressGatewayPolicy
410
+
apiVersion: isovalent.com/v1
411
+
kind: IsovalentEgressGatewayPolicy
396
412
metadata:
397
413
annotations: <1>
398
414
cilium.syn.tools/description: Generated policy to assign egress IP 192.0.2.61
@@ -417,8 +433,8 @@ spec:
417
433
matchLabels:
418
434
io.kubernetes.pod.namespace: bar <6>
419
435
---
420
-
apiVersion: cilium.io/v2
421
-
kind: CiliumEgressGatewayPolicy
436
+
apiVersion: isovalent.com/v1
437
+
kind: IsovalentEgressGatewayPolicy
422
438
metadata:
423
439
annotations: <1>
424
440
cilium.syn.tools/description: Generated policy to assign egress IP 192.0.2.32
@@ -445,7 +461,7 @@ spec:
445
461
----
446
462
<1> The component adds a number of annotations that contain the input data that was used to generate the policy.
447
463
Additionally, the component adds an annotation that gives a human-readable description of the policy.
448
-
<2> The namespace name is used as the name for the `CiliumEgressGatewayPolicy` resource.
464
+
<2> The namespace name is used as the name for the `IsovalentEgressGatewayPolicy` resource.
449
465
<3> The policy always masquerades all traffic from the namespace with the defined egress IP.
450
466
<4> The policy uses the key in `egress_ip_ranges` and the offset of the selected egress IP into the range to generate the name of the dummy interface that's expected to be assigned the shadow IPs that map to the egress IP.
451
467
<5> The policy uses the node selector that's defined in the parameter.
@@ -500,7 +516,7 @@ spec:
500
516
----
501
517
<1> The contents of the ConfigMap are generated in the format that the systemd unit managed by component `openshift4-nodes` expects.
502
518
<2> The DaemonSet mounts the `eip-shadow-ranges` ConfigMap as a volume.
503
-
<3> The DaemonSet is scheduled using the same node selector that's used for the `CiliumEgressGatewayPolicy` resources
519
+
<3> The DaemonSet is scheduled using the same node selector that's used for the `IsovalentEgressGatewayPolicy` resources
0 commit comments