Skip to content

Commit 0685aa4

Browse files
author
Steven Smith
committed
Updates egress ip docs to provide proper command for return egess ip addresses
1 parent b6757ea commit 0685aa4

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

modules/nw-egress-ips-assign.adoc

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,38 @@ $ oc apply -f <egressips_name>.yaml <1>
4949
egressips.k8s.ovn.org/<egressips_name> created
5050
----
5151

52-
. Optional: Save the `<egressips_name>.yaml` file so that you can make changes later.
52+
. Optional: Store the `<egressips_name>.yaml` file so that you can make changes later.
53+
5354
. Add labels to the namespace that requires egress IP addresses. To add a label to the namespace of an `EgressIP` object defined in step 1, run the following command:
5455
+
5556
[source,terminal]
5657
----
5758
$ oc label ns <namespace> env=qa <1>
5859
----
5960
<1> Replace `<namespace>` with the namespace that requires egress IP addresses.
61+
62+
.Verification
63+
64+
* To show all egress IPs that are in use in your cluster, enter the following command:
65+
+
66+
[source,terminal]
67+
----
68+
$ oc get egressip -o yaml
69+
----
70+
+
71+
[NOTE]
72+
====
73+
The command `oc get egressip` only returns one egress IP address regardless of how many are configured. This is not a bug and is a limitation of Kubernetes. As a workaround, you can pass in the `-o yaml` or `-o json` flags to return all egress IPs addresses in use.
74+
====
75+
+
76+
.Example output
77+
+
78+
[source,terminal]
79+
----
80+
# ...
81+
spec:
82+
egressIPs:
83+
- 192.168.127.10
84+
- 192.168.127.11
85+
# ...
86+
----

0 commit comments

Comments
 (0)