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

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:

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

Listing 2-9: Health check using command-line script

livenessProbe: 
tcpSocket:
port: 80
initialDelaySeconds: 15
timeoutSeconds: 1

Listing 2-10: Health check using simple TCP Socket connection

主站蜘蛛池模板: 正阳县| 上犹县| 静安区| 嘉禾县| 定安县| 固原市| 铁岭市| 井冈山市| 通海县| 环江| 黑山县| 晋江市| 怀远县| 安庆市| 东宁县| 双辽市| 梁平县| 云龙县| 措美县| 全州县| 成武县| 宁津县| 海门市| 乌拉特中旗| 扎赉特旗| 颍上县| 滦平县| 阿图什市| 苍山县| 花莲县| 开江县| 呼图壁县| 岳阳市| 宁武县| 望城县| 桃园县| 临泉县| 隆子县| 克东县| 木里| 准格尔旗|