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

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

主站蜘蛛池模板: 沅陵县| 建瓯市| 浦北县| 巴塘县| 龙州县| 嘉兴市| 钦州市| 尖扎县| 寻乌县| 离岛区| 阿巴嘎旗| 彭州市| 库尔勒市| 兰溪市| 绩溪县| 苏州市| 宜都市| 邵阳市| 景洪市| 绿春县| 海兴县| 肇东市| 龙井市| 静乐县| 拜泉县| 丹凤县| 东海县| 通州市| 新沂市| 额尔古纳市| 如东县| 保康县| 金塔县| 西乌珠穆沁旗| 从江县| 长顺县| 金山区| 黔西县| 德兴市| 津南区| 甘孜县|