added ingressClassName field in example ingress (#7797)
This commit is contained in:
parent
6ba7aa037f
commit
766345e2bb
1 changed files with 10 additions and 7 deletions
|
@ -37,19 +37,22 @@ An example Ingress that makes use of the controller:
|
||||||
name: example
|
name: example
|
||||||
namespace: foo
|
namespace: foo
|
||||||
spec:
|
spec:
|
||||||
|
ingressClassName: example-class
|
||||||
rules:
|
rules:
|
||||||
- host: www.example.com
|
- host: www.example.com
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- path: /
|
||||||
serviceName: exampleService
|
pathType: Prefix
|
||||||
servicePort: 80
|
backend:
|
||||||
path: /
|
service:
|
||||||
|
name: exampleService
|
||||||
|
port: 80
|
||||||
# This section is only required if TLS is to be enabled for the Ingress
|
# This section is only required if TLS is to be enabled for the Ingress
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- www.example.com
|
- www.example.com
|
||||||
secretName: example-tls
|
secretName: example-tls
|
||||||
|
|
||||||
If TLS is enabled for the Ingress, a Secret containing the certificate and key must also be provided:
|
If TLS is enabled for the Ingress, a Secret containing the certificate and key must also be provided:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue