更新部分YAML文件(新增探针相关)

This commit is contained in:
2024-12-18 17:29:00 +00:00
committed by cloud-init created default user
parent 7c44c227c7
commit 5158128582
19 changed files with 535 additions and 0 deletions

View File

@@ -31,3 +31,58 @@ spec:
containerPort: 端口号
###### 端口类型
protocol: 该端口号的类型
#### 环境变量
env:
##### 环境变量1
###### 环境变量名称
- name: 环境变量名称
###### 环境变量值
value: 环境变量值
#### 存活探针
livenessProbe:
##### TCP 探针
tcpSocket:
###### TCP 探测端口
port: TCP端口号
##### HTTP 探针
httpGet:
###### HTTP端口号
port: HTTP端口号
###### HTTP路径
path: HTTP路径
##### 命令探针
exec:
###### 需要执行的命令
command:
- 命令1
- 命令2
##### 探测延迟(容器启动后探测开始的延迟时间)(秒)
initialDelaySeconds: 探测延迟
##### 探测间隔(每次探测之间的间隔时间)(秒)
periodSeconds: 探测间隔
##### 探测超时时间(秒)
timeoutSeconds: 探测超时时间
##### 探测失败阈值(探测失败多少次时表示失败)(次数)
failureThreshold: 探测失败阈值
##### 探测成功阈值(探测成功多少次时表示成功)(次数)
successThreshold: 探测成功阈值
#### 就绪探针
readinessProbe:
##### TCP 探针
tcpSocket:
###### TCP 探测端口
port: TCP端口
##### 探测延迟(容器启动后探测开始的延迟时间)(秒)
initialDelaySeconds: 探测延迟
##### 探测间隔(每次探测之间的间隔时间)(秒)
periodSeconds: 探测间隔
#### 启动探针
startupProbe:
##### TCP 探针
tcpSocket:
###### TCP 探测端口
port: TCP端口
##### 探测延迟(容器启动后探测开始的延迟时间)(秒)
initialDelaySeconds: 探测延迟
##### 探测间隔(每次探测之间的间隔时间)(秒)
periodSeconds: 探测间隔