Skip to content

Commit efae268

Browse files
alagouttejoestringer
authored andcommitted
examples: Fix egress-gateway-policy
Previously: $ k apply -f examples/kubernetes-egress-gateway/egress-gateway-policy.yaml The CiliumEgressGatewayPolicy "egress-sample" is invalid: * spec.egressGateway.nodeSelector.matchLabels.egress-node: Invalid value: "boolean": spec.egressGateway.nodeSelector.matchLabels.egress-node in body must be of type string: "boolean" * spec.egressGateways[0].nodeSelector.matchLabels.egress-node: Invalid value: "boolean": spec.egressGateways[0].nodeSelector.matchLabels.egress-node in body must be of type string: "boolean" * spec.egressGateways[1].nodeSelector.matchLabels.egress-node-2: Invalid value: "boolean": spec.egressGateways[1].nodeSelector.matchLabels.egress-node-2 in body must be of type string: "boolean" * spec.egressGateways[2].nodeSelector.matchLabels.egress-node-3: Invalid value: "boolean": spec.egressGateways[2].nodeSelector.matchLabels.egress-node-3 in body must be of type string: "boolean" Fixes: 9b81aed ("pkg/egressgateway: Add documentation for multigateway") Signed-off-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Signed-off-by: Joe Stringer <joe@cilium.io>
1 parent 589164b commit efae268

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

examples/kubernetes-egress-gateway/egress-gateway-policy.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
matchLabels:
2222
# The following label selects which node will act as egress gateway for
2323
# this policy
24-
egress-node: true
24+
egress-node: "true"
2525
# IP used to masquerade traffic leaving the cluster
2626
egressIP: "192.168.60.100"
2727
# Alternatively it is possible to:
@@ -35,24 +35,23 @@ spec:
3535
# In this case the first IPv4 assigned to the interface with the default
3636
# route will be used as egressIP
3737
egressGateways:
38-
# It's possible to specify multiple egress gateways. In this case the source
39-
# endpoints will egress traffic through one of the gateways listed below.
40-
#
41-
# If this field is used the contents of the egressGateway field above will
42-
# be ignored.
43-
#
44-
# Entries on this list have the exact same configuration options as the
45-
# EgressGateway field above.
46-
- egressGateway:
47-
nodeSelector:
38+
# It's possible to specify multiple egress gateways. In this case the source
39+
# endpoints will egress traffic through one of the gateways listed below.
40+
#
41+
# If this field is used the contents of the egressGateway field above will
42+
# be ignored.
43+
#
44+
# Entries on this list have the exact same configuration options as the
45+
# EgressGateway field above.
46+
- nodeSelector:
4847
matchLabels:
49-
egress-node: true
48+
egress-node: "true"
5049
egressIP: "192.168.60.100"
5150
- nodeSelector:
5251
matchLabels:
53-
egress-node-2: true
52+
egress-node-2: "true"
5453
egressIP: "192.168.60.101"
5554
- nodeSelector:
5655
matchLabels:
57-
egress-node-3: true
56+
egress-node-3: "true"
5857
egressIP: "192.168.60.102"

0 commit comments

Comments
 (0)