chore: add ingress-nginx to docs (#53)

This commit is contained in:
Devin Buhl 2022-01-28 10:51:52 -05:00 committed by GitHub
parent 88278d37a7
commit fab38255eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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