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

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

主站蜘蛛池模板: 溆浦县| 红安县| 炉霍县| 达孜县| 梁山县| 莎车县| 鄂尔多斯市| 哈巴河县| 长垣县| 越西县| 基隆市| 板桥市| 宁河县| 汉阴县| 华蓥市| 玛纳斯县| 永平县| 商洛市| 梁平县| 蓝山县| 林州市| 余江县| 濉溪县| 靖宇县| 搜索| 楚雄市| 孟州市| 中卫市| 富源县| 武冈市| 兴海县| 锡林郭勒盟| 巴青县| 安国市| 宜宾市| 晋中市| 康乐县| 巨野县| 景洪市| 河北省| 宁国市|