💭 Configure Liveness, Readiness and Startup Probes | Kubernetes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

!https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

Date: March 15, 2024

Image: Configure Liveness, Readiness and Startup Probes — This page shows how to configure liveness, readiness and startup probes for containers. For more information about probes, see Liveness, Readiness and Startup Probes. Before you beginYou need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using minikube or you can use one of these Kubernetes playgrounds: </images/kubernetes-open-graph.png> Configure Liveness, Readiness and Startup Probes This page shows how to configure liveness, readiness and startup probes for containers. For more information about probes, see Liveness, Readiness and Startup Probes. Before you beginYou need to ha... Kubernetes · kubernetes.io

What is the difference between health, liveness, readiness, and startup? This article does a great job at a full writeup description of how it works in kubernetes, here is my TLDR.

- health 200 OK - I’m still responding to requests
- health ERR - something happened and I cant respond to requests
- liveness 200 OK - I’m ready for more work
- liveness ERR - I’m still responding to requests, and i’m already working send requests to another pod, or scale up

[1m[38;2;189;147;249mZ-pages[0m
[38;2;68;71;90m───────[0m

These probes are commonly deployed at [38;2;189;147;249m/healthz[0m and [38;2;189;147;249m/livez[0m endpoints.

Why the z?

z is a convention that comes from google for meta endpoints to reduce conflict with actual endpoints, and can be deployed to any application.

[38;2;68;71;90mNOTE[0m
[38;2;68;71;90m│ [0mThis post is a [4m[38;2;248;248;242mthought[0m <[38;2;248;248;242m/thoughts/[0m>. It’s a short note that I make about someone else’s content online #thoughts
