GitHunt
KU

kumina/k8s-redirectory

Redirectory is a system for redirecting requests that would usually end in a 404 response to a new destination based on rules specified by the user with the help of a UI.

Redirectory is a tool that manages redirects on a kubernetes cluster.
Requests that would usually end in a 404 PAGE NOT FOUND can now be
redirected to new pages specified with custom rules. It binds itself as
the default backend (essential a wild card) of your ingress controller
and catches all the request that the cluster can't find an ingress rule
for. After that with the help of the
Hyperscan regex engine the request is
permanently redirected to the new destination based on the rules. If there is
no rule that matches the request you can specify a default redirecting
destination.

Installation

The best installation experience is with Helm.
Just run:

$ helm install --name=redirectory redirectory/conf/helm

More information about this can be found
here.

Docker images

First we have to build the Hyperscan image because it is a base of the
other two images.

Hyperscan image

Before we can use Redirectory you must have the Hyperscan library
installed. Here is a link to the
getting started
documentation. But we also have prepaired a Docker image. You can find
the Dockerfile in: redirectory/conf/hyperscan-docker and run the
./build.sh file. The interaction between Python and Hyperscan is made
with this awesome library
python-hyperscan.

Redirectory images

There are two images. One for the management pod and one for the worker
pods. The two files are correspondingly Dockerfile_Management and
Dockerfile_Worker. You can run the ./build_redirectory_images.sh
file to build them both.

Documentation

The documentation is hosted on Read the Docs and can be found at
redirectory.readthedocs.io.

License

Redirectory is licensed under the BSD 3-Clause License License. See the
LICENSE file in the project repository.

Languages

Python60.6%Vue34.1%JavaScript3.2%Stylus0.9%Dockerfile0.7%HTML0.3%Smarty0.1%Shell0.1%

Contributors

BSD 3-Clause "New" or "Revised" License
Created July 1, 2019
Updated December 2, 2025