error-pages

by Helm

Helm chartv1.0.0App 1.0

A Helm chart for Kubernetes error pages for traefik

About this chart

Global Error Pages

Introduction

This chart installs a controller for Traefik global error pages. This service creates a global ingress rule which match all unmatched ingress rules. You can use any container you want. The container must expose the error page at the / path. The only error which is handled by traefik over this service by default is the 404 error.

Prerequisites

  • Has been tested on Kubernetes 1.11+

Installing the Chart

To install the chart with the release name error-pages, run the following command:

$ helm install kiwigrid/error-pages --name error-pages --values=my-values.yaml

Uninstalling the Chart

To uninstall/delete the error-pages deployment:

$ helm delete error-pages

The command removes all the Kubernetes components associated with the chart and deletes the release.

Tip: To completely remove the release, run helm delete --purge error-pages

Configuration

The following table lists the configurable parameters of the error-pages chart and their default values.

ParameterDescriptionDefault
replicaCountreplica count1
updateStrategyDeployment update strategytype: RollingUpdate
image.repositoryDocker image repoguillaumebriday/traefik-custom-error-pages
image.tagDocker image taglatest
image.pullPolicyDocker image pull policyIfNotPresent
resourcesResources{}
nodeSelectorNodeSelector{}
tolerationsTolerations[]
affinityAffinity{}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:

$ helm install --name error-pages --set ingress.enabled=false kiwigrid/error-pages

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart.

Deploy error-pages with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has error-pages on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charterror-pages is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply