Skip to content

Commit e4cee98

Browse files
authored
Merge pull request #76317 from aravipra/OSDOCS-9435
OSDOCS-9435: configuring router admission policy
2 parents 28fc924 + 1c9f21e commit e4cee98

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

microshift_networking/microshift-nw-router.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include::_attributes/attributes-microshift.adoc[]
66

77
toc::[]
88

9-
Learn about default and custom settings for configuring the router with {microshift-short}.
9+
Learn about default and custom settings for configuring the router and route admission policy with {microshift-short}.
1010

1111
include::modules/microshift-nw-router-con.adoc[leveloffset=+1]
1212

@@ -27,3 +27,5 @@ include::modules/microshift-nw-router-config-ip-address.adoc[leveloffset=+2]
2727
* xref:../microshift_configuring/microshift-using-config-tools.adoc#microshift-yaml-default_microshift-using-config-tools[Default settings] ({microshift-short})
2828

2929
* xref:../microshift_networking/microshift_network_policy/microshift-network-policy-index.adoc#microshift-network-policies[About network policies]
30+
31+
include::modules/microshift-nw-config-route-admission.adoc[leveloffset=+1]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * microshift_networking/microshift-nw-router.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="microshift-configuring-route-admission_{context}"]
7+
= Configuring the route admission policy
8+
9+
By default, {microshift-short} allows routes in multiple namespaces to use the same hostname. You can prevent routes from claiming the same hostname in different namespaces by configuring the route admission policy.
10+
11+
.Prerequisites
12+
13+
* You installed {microshift-short}.
14+
* You created a {microshift-short} `config.yaml` file.
15+
* You installed the {oc-first}.
16+
+
17+
[TIP]
18+
====
19+
If you complete all the configurations that you need to make in the {microshift-short} `config.yaml` file at the same time, you can minimize system restarts.
20+
====
21+
22+
.Procedure
23+
24+
. To prevent routes in different namespaces from claiming the same hostname, update the `namespaceOwnership` field value to `Strict` in the {microshift-short} `config.yaml` file. See the following example:
25+
+
26+
.Example `config.yaml` route admission policy
27+
[source,yaml]
28+
----
29+
# ...
30+
ingress:
31+
routeAdmissionPolicy:
32+
namespaceOwnership: Strict <1>
33+
# ...
34+
----
35+
<1> Prevents routes in different namespaces from claiming the same host. Valid values are `Strict` and `InterNamespaceAllowed`. If you delete the value in a customized `config.yaml`, the `InterNamespaceAllowed` value is set automatically.
36+
. To apply the configuration, restart the {microshift-short} service by running the following command:
37+
+
38+
[source,terminal]
39+
----
40+
$ sudo systemctl restart microshift
41+
----

0 commit comments

Comments
 (0)