Skip to content

Commit a661f03

Browse files
committed
Fix example ingress for v1 API version
Fix the example ingress in the nw-ingress-creating-a-route-via-an-ingress module to use the correct format for the ingress v1 API version, and change the example route to reflect more accurately the route that is generated for the ingress. Follow-up to commit aeff3a1. * modules/nw-ingress-creating-a-route-via-an-ingress.adoc: Fix the ingress service backend specification and HTTP path specification in the example ingress object to use the ingress v1 fields. Tweak the example route to more accurately reflect the route that will be generated for the example ingress.
1 parent 1781af2 commit a661f03

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

modules/nw-ingress-creating-a-route-via-an-ingress.adoc

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ spec:
2929
http:
3030
paths:
3131
- backend:
32-
serviceName: frontend
33-
servicePort: 443
32+
service:
33+
name: frontend
34+
port:
35+
number: 443
36+
path: /
37+
pathType: Prefix
3438
tls:
3539
- hosts:
3640
- www.example.com
@@ -80,9 +84,9 @@ metadata:
8084
uid: 4e6c59cc-704d-4f44-b390-617d879033b6
8185
spec:
8286
host: www.example.com
83-
to:
84-
kind: Service
85-
name: frontend
87+
path: /
88+
port:
89+
targetPort: https
8690
tls:
8791
certificate: |
8892
-----BEGIN CERTIFICATE-----
@@ -94,4 +98,7 @@ spec:
9498
[...]
9599
-----END RSA PRIVATE KEY-----
96100
termination: reencrypt
101+
to:
102+
kind: Service
103+
name: frontend
97104
----

0 commit comments

Comments
 (0)