-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Ior #20952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Ior #20952
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| [id="ossm-auto-route"] | ||
| = Automatic route creation | ||
| include::modules/ossm-document-attributes.adoc[] | ||
| toc::[] | ||
|
|
||
| OpenShift routes for Istio Gateways are automatically managed in {ProductName}. Every time an Istio Gateway is created, updated or deleted inside the service mesh, an OpenShift route is created, updated or deleted. | ||
|
|
||
| [id="ossm-auto-route-enable_{context}"] | ||
| == Enabling Automatic Route Creation | ||
| A {ProductName} control plane component called Istio OpenShift Routing (IOR) synchronizes the gateway route. Enable IOR as part of the control plane deployment. | ||
|
|
||
| If the Gateway contains a TLS section, the OpenShift Route will be configured to support TLS. | ||
|
|
||
| . In the `ServiceMeshControlPlane` resource, add the `ior_enabled` parameter and set it to `true`. For example, see the following resource snippet: | ||
|
|
||
| ---- | ||
| spec: | ||
| istio: | ||
| gateways: | ||
| istio-egressgateway: | ||
| autoscaleEnabled: false | ||
| autoscaleMin: 1 | ||
| autoscaleMax: 5 | ||
| istio-ingressgateway: | ||
| autoscaleEnabled: false | ||
| autoscaleMin: 1 | ||
| autoscaleMax: 5 | ||
| ior_enabled: true | ||
| ---- | ||
|
|
||
| For more information, see xref:../../service_mesh/service_mesh_install/customizing-installation-ossm.adoc#ossm-cr-gateway_customizing-installation-ossm[Istio gateway configuration]. | ||
|
|
||
| [id="ossm-auto-route-subdomains_{context}"] | ||
| == Subdomains | ||
|
|
||
| {ProductName} creates the route with the subdomain, but {product-title} must be configured to enable it. Subdomains, for example `*.domain.com`, are supported but not by default. Cluster administrators can refer to the {product-title} documentation for instructions on how to enable subdomains. | ||
|
|
||
| For example, if the following gateway is created: | ||
neal-timpe marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ---- | ||
| apiVersion: networking.istio.io/v1alpha3 | ||
| kind: Gateway | ||
| metadata: | ||
| name: gateway1 | ||
| spec: | ||
| selector: | ||
| istio: ingressgateway | ||
| servers: | ||
| - port: | ||
| number: 80 | ||
| name: http | ||
| protocol: HTTP | ||
| hosts: | ||
| - www.bookinfo.com | ||
| - bookinfo.example.com | ||
| ---- | ||
|
|
||
| Then, the following OpenShift Routes are created automatically. You can check that the routes are created with the following command. | ||
|
|
||
| ---- | ||
| $ oc -n <your-control-plane-namespace> get routes | ||
| NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD | ||
| gateway1-lvlfn bookinfo.example.com istio-ingressgateway <all> None | ||
| gateway1-scqhv www.bookinfo.com istio-ingressgateway <all> None | ||
| ---- | ||
|
|
||
| If the gateway is deleted, {ProductName} deletes the routes. However, routes created manually are never modified by {ProductName}. | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.