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

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
主站蜘蛛池模板: 七台河市| 清远市| 隆昌县| 巴东县| 永年县| 都昌县| 德钦县| 乾安县| 松滋市| 壤塘县| 贡觉县| 临城县| 通许县| 罗甸县| 五峰| 图们市| 沅江市| 天峨县| 固原市| 高雄市| 龙胜| 中超| 荣成市| 光泽县| 天柱县| 安康市| 婺源县| 山阴县| 咸阳市| 岗巴县| 高唐县| 安泽县| 大化| 双流县| 云梦县| 和平区| 北流市| 太原市| 独山县| 乌拉特前旗| 牙克石市|