Readiness vs Liveness Probe Kubernetes

path: /healthz
port: 8080
- name: Custom-Header
value: Awesome
initialDelaySeconds: 3
periodSeconds: 3
  • An information endpoint that displays information about the API
  • A health endpoint that exists only for the purpose of ensuring the application is up and running. Note: This doesn’t mean the application is running properly or a connection to the database is working, but say the container is up and running.
  • If this is a internal service, an endpoint that contains
- /bin/sh
- -c
- path/to/script
  • Ensure application logs are being written consistently
  • Run a check to ensure resources aren’t used at near/max capacity
scheme: HTTPS
path: /index.html
port: 8443
initialDelaySeconds: 10
periodSeconds: 5
  • In a simple web application that has a database I’d hit one of the endpoints that ensure the database connection works (a regular id lookup or even a endpoint dedicated to checking that connection to the database works)
  • A simple endpoint that hits the web application if nothing else functions on it
  • Similar to the above exec command, you can run a bit more complicated of a script that checks if a cache or other resources is working/exists




I’ve learned more about PERL than I care to admit.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

soch customer care number 8392078983,,8392078983

The Birth of a Web Browser

Generating stubs with Swagger

Committed to Success: Simon Stanlake, SVP Procurify

A how-to on API rate limiting policies implementation

Downloading public comments with a simple-to-use Python wrapper for the API

I’ve noticed I’m developing a code.

What Makes a Lousy Software Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daryan Hanshew

Daryan Hanshew

I’ve learned more about PERL than I care to admit.

More from Medium

Theoretical of Docker

Docker VS Kubernetes: What’s The Difference?

Docker — Two Ways to Get Into The Container

Understanding the Kubernetes Control Plane 101