- Getting Started with Kubernetes(Second Edition)
- Jonathan Baier
- 65字
- 2021-07-02 22:51:29
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
推薦閱讀
- 網上沖浪
- Circos Data Visualization How-to
- Dreamweaver CS3網頁制作融會貫通
- 現代機械運動控制技術
- AI 3.0
- 步步圖解自動化綜合技能
- Python:Data Analytics and Visualization
- Excel 2007常見技法與行業應用實例精講
- Windows Server 2008 R2活動目錄內幕
- Flink原理與實踐
- Dreamweaver+Photoshop+Flash+Fireworks網站建設與網頁設計完全實用
- Hands-On Business Intelligence with Qlik Sense
- RealFlow流體制作經典實例解析
- Python語言從入門到精通
- Appcelerator Titanium Smartphone App Development Cookbook(Second Edition)