Home:ALL Converter>How Kubernetes stateful set controller determine if a pod is in ready state

How Kubernetes stateful set controller determine if a pod is in ready state

Ask Time:2020-08-17T12:17:30         Author:dsingh

Json Formatter

I am trying to use kubernetes stateful set controller for one of my application. As i understand from the documentation of stateful set, with Orderedready policy it creates the pod in order and does not proceed to create the next one until the previous one is in ready state. My question is how the controller determine the pod is in ready state ? what probe it perform to determine if the current pod is in ready state ?

Author:dsingh,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/63444502/how-kubernetes-stateful-set-controller-determine-if-a-pod-is-in-ready-state
Kamol Hasan :

The statefulset controller doesn't perform any probe, it watches for its pods that are in Running and Ready state.\nThe status of the Pod's is updated by the APIserver after performing the probe checks. If you configure custom probes ( ie. readinessProbe, livenessProbe), those will be used. Otherwise,\n\nIf a Container does not provide a liveness probe, the default state is Success.\n\n\nIf a Container does not provide a readiness probe, the default state is Success.\n",
2020-08-17T04:36:45
yy