Introduction
Sometimes, you want to check if your app inside a container is ready or alive by testing if it can accept network connections. TCP probes help Kubernetes do this by trying to open a simple network connection to your app's port.
When you want Kubernetes to restart a container if it stops accepting network connections.
When you want to delay sending traffic to a container until it is ready to accept connections.
When your app does not have an HTTP endpoint but listens on a TCP port.
When you want a simple check to see if your app's port is open and responsive.
When you want to improve app reliability by automatically detecting and fixing network failures.