diff --git a/README.md b/README.md index 69494e7..9c1dd35 100644 --- a/README.md +++ b/README.md @@ -407,6 +407,31 @@ After executing `docker-compose up` you can: - Open nginx index page [on a domain `test.localtest.me`](http://test.localtest.me/) - View customized error pages for non-existing [pages](http://test.localtest.me/404) and [domains](http://404.localtest.me/) +### Kubernetes + ingress-nginx + +This can be configured to work with the [ingress-nginx](https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx) helm chart in Kubernetes. + +1. Set the `custom-http-errors` config value +2. Enable default backend +3. Set the default backend image + +```yaml +controller: + config: + custom-http-errors: >- + 401,403,404,500,501,502,503 +defaultBackend: + enabled: true + image: + repository: ghcr.io/tarampampam/error-pages + tag: latest # Using the latest tag is highly discouraged. Please, use tags in X.Y.Z format + extraEnvs: + - name: TEMPLATE_NAME # Optional: change the default theme + value: l7-dark + - name: SHOW_DETAILS # Optional: enables the output of additional information on error pages + value: 'true' +``` + ## Changes log [![Release date][badge_release_date]][link_releases]