update ingress spec

This commit is contained in:
Greg Whorley 2021-11-09 13:55:34 -08:00 committed by GitHub
parent 03ee303979
commit 97425b7542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,10 +149,13 @@ spec:
- host: echoserver.mycluster.example.org - host: echoserver.mycluster.example.org
http: &echoserver_root http: &echoserver_root
paths: paths:
- backend: - path: /
serviceName: echoserver backend:
servicePort: 80 service:
path: / name: echoserver
port:
number: 80
pathType: Prefix
- host: echoserver.example.org - host: echoserver.example.org
http: *echoserver_root http: *echoserver_root
``` ```
@ -183,10 +186,13 @@ spec:
rules: rules:
- http: - http:
paths: paths:
- backend: - path: /
serviceName: echoserver backend:
servicePort: 80 service:
path: / name: echoserver
port:
number: 80
pathType: Prefix
``` ```
In the above example we create a default path that works for any hostname, and In the above example we create a default path that works for any hostname, and
@ -217,10 +223,13 @@ spec:
- host: echoserver.example.org - host: echoserver.example.org
http: http:
paths: paths:
- backend: - path: /
serviceName: echoserver backend:
servicePort: 80 service:
path: / name: echoserver
port:
number: 80
pathType: Prefix
``` ```
The above Ingress object will result in the creation of an ALB with a dualstack The above Ingress object will result in the creation of an ALB with a dualstack
@ -251,10 +260,13 @@ spec:
- host: echoserver.example.org - host: echoserver.example.org
http: http:
paths: paths:
- backend: - path: /
serviceName: echoserver backend:
servicePort: 80 service:
path: / name: echoserver
port:
number: 80
pathType: Prefix
``` ```
The above Ingress object will result in the creation of an NLB. A The above Ingress object will result in the creation of an NLB. A