Git Product home page Git Product logo

Comments (4)

marekjelen avatar marekjelen commented on May 29, 2024

Hmm, with a non-OK content it should probably fail. What does @siamaksade @thoraxe think?

I am not against having health endpoints, but how should they behave? The integral part of the deployment is the content, if the content is not OK, why would health endpoint report healthy state?

from workshopper.

siamaksade avatar siamaksade commented on May 29, 2024

I don't think it's needed. Each deployment need to define probes that are specific to its content to be able to detect issues like that for example to /workshop/cloudnative/lab/getting-started

from workshopper.

thoraxe avatar thoraxe commented on May 29, 2024

Jorge's content wasn't rendering and therefore the liveness/readiness probes got 500s which count as failures. The container would've been restarted (failed liveness) and eventually the deployment would be considered failed.

It sounds like the behavior was correct and is exactly what we want and what's expected. If we had a /healthz endpoint, you wouldn't have known you had a problem unless you visited the app. The app would've been "broken" but happily passed liveness/readiness, which doesn't sound right.

This doesn't sound like a bug or a reason to implement /healthz.

Am I misinterpreting?

from workshopper.

marekjelen avatar marekjelen commented on May 29, 2024

OK, the agreement seems to be that it should not be there.

Let's reopen in case we find a use-case for such endpoints.

from workshopper.

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.