Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.26 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.26 KB

Enrise Default Backend

Enrise styled default backend container for Nginx ingress controllers in Kubernetes clusters.

Example

Details

This container is built to follow the Nginx default backend specs which means:

  • / serves a HTTP 404 Not Found response
  • /healtz serves a HTTP 200 OK response

Usage

Using this default backend can be done by setting the following values for the Nginx ingress controller Helm chart:

defaultBackend:
  enabled: true
  name: enrise-default-backend
  port: 8000
  image:
    registry: docker.io
    image: enrise/default-backend
    tag: latest
    pullPolicy: Always
    runAsUser: 100
    readOnlyRootFilesystem: false

This config is tested with version 4.9.0 of the ingress-nginx Helm chart.

Building & modifying

Feel free to modify anything inside the html directory as you see fit. Afterwards, run these commands to test it out:

$ docker build -t enrise/default-backend:dev .
$ docker run --rm -ti -p 8000:8000 enrise/default-backend:dev

and you can now check http://localhost:8000.

Or to debug / see what's in the container:

$ docker run --rm -ti -p 8000:8000 enrise/default-backend:dev sh