書名: 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
推薦閱讀
- 數據展現的藝術
- 現代測控系統典型應用實例
- Cloud Analytics with Microsoft Azure
- Visual C# 2008開發技術詳解
- Python Algorithmic Trading Cookbook
- 塊數據5.0:數據社會學的理論與方法
- Kubernetes for Serverless Applications
- 水下無線傳感器網絡的通信與決策技術
- 激光選區熔化3D打印技術
- 基于企業網站的顧客感知服務質量評價理論模型與實證研究
- Word 2007,Excel 2007辦公應用融會貫通
- 液壓機智能故障診斷方法集成技術
- SQL Server數據庫應用基礎(第2版)
- 智能制造系統及關鍵使能技術
- 實戰Windows Azure