You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/services-networking/ingress.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,13 +88,13 @@ has all the information needed to configure a load balancer or proxy server. Mos
88
88
contains a list of rules matched against all incoming requests. Ingress resource only supports rules
89
89
for directing HTTP(S) traffic.
90
90
91
-
If the `ingressClassName` is omitted, a [default Ingress class](#default-ingress-class)
91
+
If the `ingressClassName` is omitted, a [default Ingress class](#default-ingress-class)
92
92
should be defined.
93
93
94
-
There are some ingress controllers, that work without the definition of a
95
-
default `IngressClass`. For example, the Ingress-NGINX controller can be
96
-
configured with a [flag](https://kubernetes.github.io/ingress-nginx/#what-is-the-flag-watch-ingress-without-class)
97
-
`--watch-ingress-without-class`. It is [recommended](https://kubernetes.github.io/ingress-nginx/#i-have-only-one-instance-of-the-ingresss-nginx-controller-in-my-cluster-what-should-i-do) though, to specify the
94
+
There are some ingress controllers, that work without the definition of a
95
+
default `IngressClass`. For example, the Ingress-NGINX controller can be
96
+
configured with a [flag](https://kubernetes.github.io/ingress-nginx/#what-is-the-flag-watch-ingress-without-class)
97
+
`--watch-ingress-without-class`. It is [recommended](https://kubernetes.github.io/ingress-nginx/#i-have-only-one-instance-of-the-ingresss-nginx-controller-in-my-cluster-what-should-i-do) though, to specify the
98
98
default `IngressClass` as shown [below](#default-ingress-class).
99
99
100
100
### Ingress rules
@@ -118,8 +118,14 @@ match a path in the spec.
118
118
119
119
### DefaultBackend {#default-backend}
120
120
121
-
An Ingress with no rules sends all traffic to a single default backend. The `defaultBackend` is conventionally a configuration option
122
-
of the [Ingress controller](/docs/concepts/services-networking/ingress-controllers) and is not specified in your Ingress resources.
121
+
An Ingress with no rules sends all traffic to a single default backend and `.spec.defaultBackend`
122
+
is the backend that should handle requests in that case.
123
+
The `defaultBackend` is conventionally a configuration option of the
124
+
[Ingress controller](/docs/concepts/services-networking/ingress-controllers) and
125
+
is not specified in your Ingress resources.
126
+
If no `.spec.rules` are specified, `.spec.defaultBackend` must be specified.
127
+
If `defaultBackend` is not set, the handling of requests that do not match any of the rules will be up to the
128
+
ingress controller (consult the documentation for your ingress controller to find out how it handles this case).
123
129
124
130
If none of the hosts or paths match the HTTP request in the Ingress objects, the traffic is
0 commit comments