execute tcp liveness probe instance (#8721)

* execute tcp liveness probe instance

* fix wrong file reference
This commit is contained in:
chenhonggc
2018-06-01 07:21:55 +08:00
committed by k8s-ci-robot
parent be8852a882
commit e49f288730
@@ -195,6 +195,18 @@ starts. Just like the readiness probe, this will attempt to connect to the
`goproxy` container on port 8080. If the liveness probe fails, the container
will be restarted.
To try the TCP liveness check, create a Pod:
```shell
kubectl create -f https://k8s.io/docs/tasks/configure-pod-container/tcp-liveness-readiness.yaml
```
After 15 seconds, view Pod events to verify that liveness probes:
```shell
kubectl describe pod goproxy
```
## Use a named port
You can use a named