After five such requests (or actual client requests), your app starts returning HTTP status code 500, which Kubernetes will treat as a probe failure, and will thus restart the container.
- Chapter 4. Replication and other controllers: deploying managed pods
- from Kubernetes in Action
- Publisher: Manning Publications
- Released: December 2017
If I read this correctly, The pod will not be deleted, but the container will be deleted and re-created.
This seems to be true since the pod's age increased and while restarts increased. The pod also keeps the same IP address
Share this highlighthttp://learning.oreilly.com/a/kubernetes-in-action/16700945/