commit
6f4ea7ac7f
|
@ -96,7 +96,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- args:
|
- args:
|
||||||
- /server
|
- /server
|
||||||
image: gcr.io/google_containers/liveness
|
image: k8s.gcr.io/liveness
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
# when "host" is not defined, "PodIP" will be used
|
# when "host" is not defined, "PodIP" will be used
|
||||||
|
@ -106,8 +106,8 @@ spec:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: 8080
|
port: 8080
|
||||||
httpHeaders:
|
httpHeaders:
|
||||||
- name: X-Custom-Header
|
- name: X-Custom-Header
|
||||||
value: Awesome
|
value: Awesome
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
name: liveness
|
name: liveness
|
||||||
|
@ -159,4 +159,4 @@ spec:
|
||||||
|
|
||||||
原文地址:https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/
|
原文地址:https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/
|
||||||
|
|
||||||
翻译:[rootsongjc](https://github.com/rootsongjc)
|
翻译:[rootsongjc](https://github.com/rootsongjc)
|
||||||
|
|
Loading…
Reference in New Issue