- 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
推薦閱讀
- Learning Microsoft Azure Storage
- Managing Mission:Critical Domains and DNS
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- 程序設計語言與編譯
- 輕松學Java
- 大數據技術入門(第2版)
- Supervised Machine Learning with Python
- 工業機器人運動仿真編程實踐:基于Android和OpenGL
- 運動控制系統
- RedHat Linux用戶基礎
- Excel 2007常見技法與行業應用實例精講
- Photoshop行業應用基礎
- 步步驚“芯”
- 網站規劃與網頁設計
- FreeCAD [How-to]