Skip to content

Commit 18576ab

Browse files
OSSM-9365
1 parent 329fa95 commit 18576ab

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

install/ossm-installing-openshift-service-mesh.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ include::modules/ossm-about-bookinfo-application.adoc[leveloffset=+1]
3939
include::modules/ossm-deploying-bookinfo-application.adoc[leveloffset=+2]
4040
include::modules/ossm-about-accessing-bookinfo-application-using-gateway.adoc[leveloffset=+2]
4141
include::modules/ossm-accessing-bookinfo-application-using-istio-gateway-injection.adoc[leveloffset=+2]
42-
include::modules/ossm-accessing-bookinfo-application-using-gateway-api.adoc[leveloffset=+2]
43-
include::modules/ossm-customizing-istio-configuration.adoc[leveloffset=+1]
42+
include::modules/ossm-accessing-bookinfo-application-using-gateway-api.adoc[leveloffset=+2]
4443
45-
//adding comment for force change to see if migration link updates in Pantheon. Currently returning a 404 error.
44+
[role="_additional-resources"]
45+
.Additional resources
46+
* link:https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/networking/configuring-ingress-cluster-traffic[Configuring ingress cluster traffic]
47+
48+
include::modules/ossm-customizing-istio-configuration.adoc[leveloffset=+1]

modules/ossm-accessing-bookinfo-application-using-gateway-api.adoc

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
:_mod-docs-content-type: Procedure
22
[id="ossm-accessing-bookinfo-application-using-gateway-api"]
33
= Accessing the Bookinfo application by using Gateway API
4-
:context: ossm-accessing-bookinfo-application-using-gateway-API
54

6-
The {k8s} Gateway API deploys a gateway by creating a `Gateway` resource. In {ocp-product-title} 4.15 and later versions. If you want your cluster to use the Gateway API CRDs, you must enable the CRDs because they are disabled by default.
5+
The {k8s} Gateway API deploys a gateway by creating a `Gateway` resource. In {ocp-product-title} 4.15 and later, {SMProductName} implements the Gateway API custom resource definitions (CRDs). However, in {ocp-product-title} 4.18 and earlier, the CRDs are not installed by default. Hence, in {ocp-product-title} 4.15 through 4.18, you must manually install the CRDs. Starting with {ocp-product-title} 4.19, these CRDs are automatically installed and managed, and you can no longer create, update, or delete them.
6+
7+
For details about enabling Gateway API for Ingress in {ocp-product-title} 4.19 and later, see "Configuring ingress cluster traffic" in the {ocp-product-title} documentation.
78

89
[NOTE]
910
====
@@ -20,14 +21,14 @@ Red{nbsp}Hat provides support for using the {k8s} Gateway API with {SMProductNam
2021
2122
.Procedure
2223

23-
. Enable the Gateway API CRDs:
24+
. Enable the Gateway API CRDs for {ocp-product-title} 4.18 and earlier, by running the following command:
2425
+
2526
[source,terminal]
2627
----
2728
$ oc get crd gateways.gateway.networking.k8s.io &> /dev/null || { oc kustomize "github.com/kubernetes-sigs/gateway-api/config/crd?ref=v1.0.0" | oc apply -f -; }
2829
----
2930

30-
. Create and configure a gateway using a `Gateway` resource and `HTTPRoute` resource:
31+
. Create and configure a gateway by using the `Gateway` and `HTTPRoute` resources by running the following command:
3132
+
3233
[source,terminal]
3334
----
@@ -39,27 +40,41 @@ $ oc apply -f https://raw.githubusercontent.com/openshift-service-mesh/istio/rel
3940
To configure a gateway with the `bookinfo` application by using the Gateway API, this example uses a sample gateway configuration file that must be applied in the namespace where the application is installed.
4041
====
4142

42-
. Ensure that the Gateway API service is ready, and has an address allocated:
43+
. Ensure that the Gateway API service is ready, and has an address allocated by running the following command:
4344
+
4445
[source,terminal]
4546
----
4647
$ oc wait --for=condition=programmed gtw bookinfo-gateway -n bookinfo
4748
----
4849

49-
. Retrieve the host, port and gateway URL:
50+
. Retrieve the host by running the following command:
5051
+
5152
[source,terminal]
5253
----
5354
$ export INGRESS_HOST=$(oc get gtw bookinfo-gateway -n bookinfo -o jsonpath='{.status.addresses[0].value}')
55+
----
56+
57+
. Retrieve the port by running the following command:
58+
+
59+
[source,terminal]
60+
----
5461
$ export INGRESS_PORT=$(oc get gtw bookinfo-gateway -n bookinfo -o jsonpath='{.spec.listeners[?(@.name=="http")].port}')
62+
----
63+
64+
. Retrieve the gateway URL by running the following command:
65+
+
66+
[source,terminal]
67+
----
5568
$ export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
5669
----
5770
58-
. Obtain the gateway host name and the URL of the product page:
71+
. Obtain the gateway host name and the URL of the product page by running the following command:
5972
+
6073
[source,terminal]
6174
----
6275
$ echo "http://${GATEWAY_URL}/productpage"
6376
----
6477
65-
. Verify that the `productpage` is accessible from a web browser.
78+
.Verification
79+
80+
* Verify that the *productpage* is accessible from a web browser.

0 commit comments

Comments
 (0)