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

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

主站蜘蛛池模板: 石首市| 突泉县| 淳化县| 琼中| 新邵县| 大城县| 彭阳县| 新宁县| 宜昌市| 平度市| 饶平县| 扎鲁特旗| 招远市| 吕梁市| 伊金霍洛旗| 亚东县| 黄骅市| 台安县| 广南县| 博湖县| 象州县| 宜春市| 溆浦县| 萨嘎县| 万州区| 南木林县| 沈阳市| 苏州市| 沙坪坝区| 永登县| 子长县| 广水市| 石河子市| 应城市| 湘潭市| 万州区| 孝感市| 广西| 临江市| 三门县| 西平县|