GithubHelp home page GithubHelp logo

Readiness endpoint about traefik HOT 4 OPEN

mloiseleur avatar mloiseleur commented on May 25, 2024 3
Readiness endpoint

from traefik.

Comments (4)

sfudeus avatar sfudeus commented on May 25, 2024

We are suffering from the same problem. Traefik is reporting readiness before all currently deployed K8s ingress manifest are consumed, causing 404 errors anytime new traefik pods come up (during redeploys or scaling events).
Especially for instances with many ingresses this is a problem (our biggest tenants have up to 400 ingresses).

Thanks for the hint with /api/rawdata, I am now using this as a workaround in a sidecar container by checking it multiple times on a loop until the amount of routers has been constant within a defined stabilization window. I am using a sidecar instead of a startupProbe in the traefik container to have more tooling (curl, jq) available. The check is only done initially and checked by a startupProbe, the sidecar sleeps afterwards.

from traefik.

nmengin avatar nmengin commented on May 25, 2024

Hey @mloiseleur!

Thanks for your suggestion.
We are interested in this issue, but we’re unsure about the use case and the traction it will receive. We are going to leave the status as kind/proposal to give the community time to let us know if they would like this idea.

We will reevaluate as people respond.

from traefik.

sfudeus avatar sfudeus commented on May 25, 2024

but we’re unsure about the use case

I thought this is rather obvious. Currently, traefik pods become ready and as such attract traffic before having consumed all relevant configuration data from the Kubernetes API.

Consequence: Clients see error 404 for their requests for a while, while traefik becomes ready over time.

from traefik.

mossroy avatar mossroy commented on May 25, 2024

I confirm the issue.
Without this endpoint, I don't find a generic and reliable way to setup a k8s probe that tells if traefik is really ready.

So, when Traefik has not setup all its routes, but is already considered "ready" by k8s (with its default probe), part of the traffic can be sent to a wrong route.

In my case, I have some routes that require a Basic Auth and/or use the default self-signed TLS certificate.
As a consequence, the user can receive a Basic Auth pop-up where there should not be any and/or a browser warning about the TLS certificate. It's very disturbing for users, and can happen on each Traefik restart.

from traefik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.