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

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
主站蜘蛛池模板: 清远市| 隆回县| 安阳县| 伊宁县| 定南县| 南平市| 沙雅县| 南郑县| 汉源县| 汕尾市| 连云港市| 茶陵县| 盐亭县| 分宜县| 泗洪县| 克东县| 阳原县| 吐鲁番市| 株洲市| 乐清市| 腾冲县| 金乡县| 大安市| 阆中市| 定兴县| 丹凤县| 武陟县| 云南省| 伊吾县| 南通市| 邵东县| 昭平县| 民丰县| 湟中县| 遂川县| 绥江县| 普安县| 洱源县| 肃南| 斗六市| 佛学|