Traefik and NetScaler Content Switching - lb and monitor

The software I use, Ghost behave in a weird way and was sending http (instead of https) for all the pictures... The only way to correct this is to go through traefik to have a first reverse proxy and then going through the Netscaler stack

· 2 min read
Traefik and NetScaler Content Switching - lb and monitor
Photo by 愚木混株 cdd20 / Unsplash

With the Docker Swarm infrastructure I now use, hosting a ghost blog (this one) behind a Netscaler Content Switching and then a reverse proxy Traefik is a problem when having more than one docker container available to serve this blog. The software I use, Ghost behave in a weird way and was sending http (instead of https) for all the pictures... The only way to correct this is to go through traefik to have a first reverse proxy and then going through the Netscaler stack

Traefik is a reverse proxy and load balancer that dynamically configures itself based on changes in an infrastructure. It listens for changes in popular platforms like Docker, Kubernetes, Mesos, and Swarm, and updates its routing rules accordingly. Traefik routes requests to the appropriate backend service, monitors health, and provides detailed metrics. Its label-based configuration system makes it easy to manage and optimize traffic in real-time.
Traefik Labs: Say Goodbye to Connectivity Chaos
Reimagine your application connectivity and API management with Traefik’s unmatched approach to cloud native.

Long story short, I use Netscaler to load balance the 3 dockers instances and when I added a regular 443 https / ssl monitor, as it goes through Traefik, the monitor was just returning 404 error because Traefik was not able to route and recognise the traffic coming from the Netscaler service group monitoring.

I had to find a way to have the monitor sending a request through Traefik with www.archy.net somehow.

I've been able to do so with a HTTP-ECV monitor configured this way :

that you can configure this way with the GUI

now I got a fully functional and monitored lb instance on the Netscaler.