Skip to content

Commit afab978

Browse files
authored
Merge pull request #52285 from Amrita42/BZ2115269
adds description for targetPort
2 parents 645b8d8 + 7a55328 commit afab978

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/nw-creating-a-route.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $ oc expose svc hello-openshift
5656
----
5757
$ oc get routes -o yaml <name of resource> <1>
5858
----
59-
<1> In this example, the route is named `hello-openshift`.
59+
<1> In this example, the route is named `hello-openshift`.
6060
6161
.Sample YAML definition of the created unsecured route:
6262
[source,yaml]
@@ -68,12 +68,14 @@ metadata:
6868
spec:
6969
host: hello-openshift-hello-openshift.<Ingress_Domain> <1>
7070
port:
71-
targetPort: 8080
71+
targetPort: 8080 <2>
7272
to:
7373
kind: Service
7474
name: hello-openshift
7575
----
7676
<1> `<Ingress_Domain>` is the default ingress domain name.
77+
<2> `targetPort` is the target port on pods that is selected by the service that this route points to.
78+
7779
+
7880
[NOTE]
7981
====

0 commit comments

Comments
 (0)