- Getting Started with Kubernetes
- Jonathan Baier Jesse White
- 62字
- 2021-06-10 19:47:09
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
推薦閱讀
- 數(shù)據(jù)展現(xiàn)的藝術(shù)
- Mastering Spark for Data Science
- 工業(yè)機器人產(chǎn)品應(yīng)用實戰(zhàn)
- 程序設(shè)計缺陷分析與實踐
- Mastering D3.js
- 現(xiàn)代傳感技術(shù)
- CompTIA Linux+ Certification Guide
- Mastering Game Development with Unreal Engine 4(Second Edition)
- Excel 2007常見技法與行業(yè)應(yīng)用實例精講
- Hands-On Reactive Programming with Reactor
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- 未來學(xué)徒:讀懂人工智能飛馳時代
- Xilinx FPGA高級設(shè)計及應(yīng)用
- C#編程兵書
- 人工智能云平臺:原理、設(shè)計與應(yīng)用