Kubernetes: TCP Socket liveness sample

Created on 5 Mar 2016  路  3Comments  路  Source: kubernetes/kubernetes

https://github.com/kubernetes/kubernetes/tree/master/docs/user-guide/liveness contains application level health-check using HTTP and Container Exec. TCP Socket example configuration file and docs are missing.

For example, there are no links to TCP socket example at: http://kubernetes.io/v1.1/docs/user-guide/walkthrough/k8s201.html#application-health-checking

kindocumentation needs-sig sinetwork

Most helpful comment

@arun-gupta this works fine for me

ports: - containerPort: 8080 livenessProbe: tcpSocket: port: 8080 initialDelaySeconds: 180 readinessProbe: tcpSocket: port: 8080 initialDelaySeconds: 10

https://github.com/kubernetes/kubernetes/blob/8fd414537b5143ab039cb910590237cabf4af783/test/images/goproxy/pod.yaml

All 3 comments

@arun-gupta this works fine for me

ports: - containerPort: 8080 livenessProbe: tcpSocket: port: 8080 initialDelaySeconds: 180 readinessProbe: tcpSocket: port: 8080 initialDelaySeconds: 10

https://github.com/kubernetes/kubernetes/blob/8fd414537b5143ab039cb910590237cabf4af783/test/images/goproxy/pod.yaml

/sig network

/assign
closing because of working example commented above, and linked PR that adds an example to docs

/close

Was this page helpful?
0 / 5 - 0 ratings