Giter VIP home page Giter VIP logo

k8s-readiness-liveness-probes's Introduction

k8s-readiness-liveness-probes

Kubernetes Readiness and Liveness Probe demo application.

Files

├── cmd
│   └── application
│       └── main.go
├── Dockerfile
├── LICENSE
├── Makefile
├── manifests
│   ├── deployment.yaml
│   └── service.yaml
└── README.md - This file.

Problem

An application that receives a signal (e.g., when Kubernetes / OpenShift) wants to terminate the Pod, instantly exits / terminates because of the signal.

Why is that a problem?

It takes a short amount of time till this change to a Pod is propagated across the whole Kubernetes / OpenShift cluster. This means that in the "worst" case, user requests are going against an application Pod which is currently being terminated.

Probes

Readiness Probe

"Is the application ready to accept and serve requests?"

Examples:

  • Listener started and ready to process requests.
    • Some applications open the listener before everything is initialized.
  • Application is able to process requests.

Liveness Probe

"Is the application able to handle requests?"

Examples:

  • Not in a Deadlock.
    • Listener still working.
  • Application logic still working.

Graceful Service Degradation

Application should gracefully handle, e.g., a database which is not available right now. An application should not panick and exit because of that.

k8s-readiness-liveness-probes's People

Contributors

galexrt avatar

Watchers

James Cloos avatar  avatar

Forkers

lingling1420q

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.