From 975af8e99f4d1b7ea36eb2af0dd14feec786d3b6 Mon Sep 17 00:00:00 2001 From: Nick Gerace Date: Mon, 7 Dec 2020 18:23:19 -0500 Subject: [PATCH] Add default backend section to ingress controllers Add default backend section to ingress controllers. This section provides a guide and brief explanation on the default backend service. --- .../add-ons/ingress-controllers/_index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/rke/latest/en/config-options/add-ons/ingress-controllers/_index.md b/content/rke/latest/en/config-options/add-ons/ingress-controllers/_index.md index 4e32fb33858..ea60f92abe5 100644 --- a/content/rke/latest/en/config-options/add-ons/ingress-controllers/_index.md +++ b/content/rke/latest/en/config-options/add-ons/ingress-controllers/_index.md @@ -52,6 +52,17 @@ ingress: enable-ssl-passthrough: "" ``` +### Disabling NGINX Ingress Default Backend + +As of v0.20.0, you can disable the [default backend service](https://kubernetes.github.io/ingress-nginx/user-guide/default-backend/) for the ingress controller. This is possible because `ingress-nginx` will fall back to a local 404 page, and does not require a backend service. The service can be enabled/disabled with a boolean value. + +```yaml +ingress: + default_backend: false +``` + +> **What happens if the field is omitted?** The value of `default_backend` will default to `true`. This maintains behavior with older versions of `rke`. However, a future version of `rke` will change the default value to `false`. + ## Configuring an NGINX Default Certificate When configuring an ingress object with TLS termination, you must provide it with a certificate used for encryption/decryption. Instead of explicitly defining a certificate each time you configure an ingress, you can set up a custom certificate that's used by default.