高级 liveness 探针示例使用官方最新 yaml 配置
parent
e28ec111f0
commit
3628c5ac62
|
@ -96,7 +96,7 @@ spec:
|
|||
containers:
|
||||
- args:
|
||||
- /server
|
||||
image: gcr.io/google_containers/liveness
|
||||
image: k8s.gcr.io/liveness
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
# when "host" is not defined, "PodIP" will be used
|
||||
|
@ -106,8 +106,8 @@ spec:
|
|||
path: /healthz
|
||||
port: 8080
|
||||
httpHeaders:
|
||||
- name: X-Custom-Header
|
||||
value: Awesome
|
||||
- name: X-Custom-Header
|
||||
value: Awesome
|
||||
initialDelaySeconds: 15
|
||||
timeoutSeconds: 1
|
||||
name: liveness
|
||||
|
@ -159,4 +159,4 @@ spec:
|
|||
|
||||
原文地址:https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/
|
||||
|
||||
翻译:[rootsongjc](https://github.com/rootsongjc)
|
||||
翻译:[rootsongjc](https://github.com/rootsongjc)
|
||||
|
|
Loading…
Reference in New Issue