官术网_书友最值得收藏!

TCP checks

Kubernetes also supports health checks via simple TCP socket checks and also with custom command-line scripts.

The following snippets are examples of what both use cases look like in the YAML file. 

Health check using command-line script:

livenessProbe: 
exec:
command:
-/usr/bin/health/checkHttpServce.sh
initialDelaySeconds:90
timeoutSeconds: 1

Health check using simple TCP Socket connection:

livenessProbe: 
tcpSocket:
port: 80
initialDelaySeconds: 15
timeoutSeconds: 1
主站蜘蛛池模板: 荔波县| 雅江县| 肃南| 浦县| 高雄县| 申扎县| 长春市| 隆化县| 辛集市| 平安县| 邵武市| 永吉县| 德格县| 轮台县| 铅山县| 安泽县| 丁青县| 金湖县| 安仁县| 合阳县| 西丰县| 水富县| 辽阳县| 河南省| 昌平区| 万安县| 龙门县| 八宿县| 永嘉县| 临清市| 新兴县| 西畴县| 康乐县| 太保市| 时尚| 阿拉善盟| 黄梅县| 永丰县| 阳原县| 耿马| 阿坝县|