- 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
推薦閱讀
- Mastering Spark for Data Science
- 商戰(zhàn)數(shù)據(jù)挖掘:你需要了解的數(shù)據(jù)科學與分析思維
- 機器人智能運動規(guī)劃技術(shù)
- 大數(shù)據(jù)安全與隱私保護
- 精通特征工程
- Java Web整合開發(fā)全程指南
- Blender 3D Printing by Example
- Practical Big Data Analytics
- TensorFlow Reinforcement Learning Quick Start Guide
- Citrix? XenDesktop? 7 Cookbook
- 軟件構(gòu)件技術(shù)
- Linux系統(tǒng)管理員工具集
- Hands-On Business Intelligence with Qlik Sense
- 計算機硬件技術(shù)基礎(chǔ)(第2版)
- x86/x64體系探索及編程