Skip to content

Commit e5641d9

Browse files
authored
Merge pull request #58062 from xenolinux/sharding-route-ns
OCPBUGS#9407: Update the ingress controller sharding procedure
2 parents 18b0241 + 24c6c3d commit e5641d9

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

modules/nw-ingress-sharding-namespace-labels.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ items:
3939
name: sharded
4040
namespace: openshift-ingress-operator
4141
spec:
42-
domain: <apps-sharded.basedomain.example.net>
42+
domain: <apps-sharded.basedomain.example.net> <1>
4343
nodePlacement:
4444
nodeSelector:
4545
matchLabels:
@@ -53,6 +53,7 @@ metadata:
5353
resourceVersion: ""
5454
selfLink: ""
5555
----
56+
<1> Specify a domain to be used by the Ingress Controller. This domain must be different from the default Ingress Controller domain.
5657

5758
. Apply the Ingress Controller `router-internal.yaml` file:
5859
+
@@ -63,3 +64,10 @@ metadata:
6364
+
6465
The Ingress Controller selects routes in any namespace that is selected by the
6566
namespace selector that have the label `type: sharded`.
67+
68+
. Create a new route using the domain configured in the `router-internal.yaml`:
69+
+
70+
[source,terminal]
71+
----
72+
$ oc expose svc <service-name> --hostname <route-name>.apps-sharded.basedomain.example.net
73+
----

modules/nw-ingress-sharding-route-labels.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ items:
3434
name: sharded
3535
namespace: openshift-ingress-operator
3636
spec:
37-
domain: <apps-sharded.basedomain.example.net>
37+
domain: <apps-sharded.basedomain.example.net> <1>
3838
nodePlacement:
3939
nodeSelector:
4040
matchLabels:
@@ -48,6 +48,7 @@ metadata:
4848
resourceVersion: ""
4949
selfLink: ""
5050
----
51+
<1> Specify a domain to be used by the Ingress Controller. This domain must be different from the default Ingress Controller domain.
5152

5253
. Apply the Ingress Controller `router-internal.yaml` file:
5354
+
@@ -58,3 +59,10 @@ metadata:
5859
+
5960
The Ingress Controller selects routes in any namespace that have the label
6061
`type: sharded`.
62+
63+
. Create a new route using the domain configured in the `router-internal.yaml`:
64+
+
65+
[source,terminal]
66+
----
67+
$ oc expose svc <service-name> --hostname <route-name>.apps-sharded.basedomain.example.net
68+
----

0 commit comments

Comments
 (0)