Skip to content

con2/redirects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redirects en masse on Kubernetes

We have a whole host of hostnames we want to redirect to another hostname. This is the Way.

Why not just use the nginx.ingress.kubernetes.io/temporal-redirect annotation?

It takes place before cert-manager challenge solvers, effectively breaking LetsEncrypt for domains using it. There are some issues that have been filed against cert-manager and ingress-nginx solving the similar case for HTTP -> HTTPS redirect and basic auth, but not temporal-redirect specifically.

So instead we opt for an nginx pod with configuration mounted from a ConfigMap into under /etc/nginx/conf.d.

Configuration

Use kubernetes/default.vars.yaml as reference and kubernetes/production.vars.yaml as example.

Building and deploying

emsk -E production -- run -n redirects

About

Redirects en masse using ingress-nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published