added ingressClassName field in example ingress (#7797)

This commit is contained in:
Long Wu Yuan 2021-10-12 08:09:47 +05:30 committed by GitHub
parent 6ba7aa037f
commit 766345e2bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: